salsa20
salsa20 copied to clipboard
An implementation of the Salsa20 stream cipher in C99
`s20_crypt` uses automatic variables as 'scratch space' when deriving a keystream block. `s20_crypt` returns without zeroing these automatic variables first, resulting in cryptographic material (the last keystream block and possibly...
The `s20_crypt` function uses automatic variables to store sensitive material (including, at various points, the key and the derived keystream blocks) during a cryptographic operation. `s20_crypt` does not lock the...
on the s20_hash function, for(i = 0; i < 10; ++i) is incorrect instead of 10, use 9. nice code btw