Joachim Strömbergson joachim@secworks.se writes:
Can't seem to find a similar meta file for salsa20. I'm looking at the the arcfour-meta and the twofish-meta where the latter seems easier to grokk.
Ah, it's hidden in nettle-internal.c (which is used by testcases and benchmark only). That's because the nettle_cipher abstraction lacks a mechanism to set the iv, which is essential for salsa20.
I think we ought to introduce something slightly different than nettle_cipher for stream ciphers.
And if you find the _NETTLE_CIPHER* macros confusing, you don't need to use them.
Regards, /Niels