{"action":"created","issue":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3229","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3229/labels{/name}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3229/comments","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3229/events","html_url":"https://github.com/RIOT-OS/RIOT/pull/3229","id":89879570,"number":3229,"title":"sys: add ChaCha stream cipher and PRNG","user":{"login":"Kijewski","id":136776,"avatar_url":"https://avatars.githubusercontent.com/u/136776?v=3","gravatar_id":"","url":"https://api.github.com/users/Kijewski","html_url":"https://github.com/Kijewski","followers_url":"https://api.github.com/users/Kijewski/followers","following_url":"https://api.github.com/users/Kijewski/following{/other_user}","gists_url":"https://api.github.com/users/Kijewski/gists{/gist_id}","starred_url":"https://api.github.com/users/Kijewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kijewski/subscriptions","organizations_url":"https://api.github.com/users/Kijewski/orgs","repos_url":"https://api.github.com/users/Kijewski/repos","events_url":"https://api.github.com/users/Kijewski/events{/privacy}","received_events_url":"https://api.github.com/users/Kijewski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/NEEDS%20SQUASHING","name":"NEEDS SQUASHING","color":"009800"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/new%20feature","name":"new feature","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"phiros","id":16182,"avatar_url":"https://avatars.githubusercontent.com/u/16182?v=3","gravatar_id":"","url":"https://api.github.com/users/phiros","html_url":"https://github.com/phiros","followers_url":"https://api.github.com/users/phiros/followers","following_url":"https://api.github.com/users/phiros/following{/other_user}","gists_url":"https://api.github.com/users/phiros/gists{/gist_id}","starred_url":"https://api.github.com/users/phiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phiros/subscriptions","organizations_url":"https://api.github.com/users/phiros/orgs","repos_url":"https://api.github.com/users/phiros/repos","events_url":"https://api.github.com/users/phiros/events{/privacy}","received_events_url":"https://api.github.com/users/phiros/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-21T08:01:28Z","updated_at":"2015-06-24T07:37:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/3229","html_url":"https://github.com/RIOT-OS/RIOT/pull/3229","diff_url":"https://github.com/RIOT-OS/RIOT/pull/3229.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/3229.patch"},"body":"This implementation is optimized for a little code and data size, not\r\nfor speed. IMO the code is more readable than in the reference\r\nimplementation.\r\n\r\nThe biggest advantage of ChaCha over other stream ciphers is the very\r\nlittle data usage with only 64 bytes of context, and its good encryption\r\nspeed.\r\n\r\nAlso part of this PR is pseudo-random number generator, that just\r\nreturns the keystream of a randomly initialized ChaCha context."},"comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments/114766025","html_url":"https://github.com/RIOT-OS/RIOT/pull/3229#issuecomment-114766025","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3229","id":114766025,"user":{"login":"rfswarm","id":10440421,"avatar_url":"https://avatars.githubusercontent.com/u/10440421?v=3","gravatar_id":"","url":"https://api.github.com/users/rfswarm","html_url":"https://github.com/rfswarm","followers_url":"https://api.github.com/users/rfswarm/followers","following_url":"https://api.github.com/users/rfswarm/following{/other_user}","gists_url":"https://api.github.com/users/rfswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/rfswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfswarm/subscriptions","organizations_url":"https://api.github.com/users/rfswarm/orgs","repos_url":"https://api.github.com/users/rfswarm/repos","events_url":"https://api.github.com/users/rfswarm/events{/privacy}","received_events_url":"https://api.github.com/users/rfswarm/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T07:37:34Z","updated_at":"2015-06-24T07:37:34Z","body":"what you don't like about #2387? criticizing it (by blaming me I am a copycat) and re-implementing it - yeah ty - I don't want to rude but what mostly makes your code smaller is the use of memcpy vs U8TO32_LITTLE. "}}