Hi,
On Mon, 10 Feb 2014 10:19:48 +0100 nisse@lysator.liu.se (Niels Möller) wrote:
That's good (and otherwise, the tests wouldn't have failed...). BTW, do you know of any other source of testvectors (even if not as extensive as the ones in your draft)?
You can plug the reference implementation from http://cr.yp.to/chacha.html into ecrypt: http://www.ecrypt.eu.org/stream/svn/viewcvs.cgi/ecrypt/ (extract the attached archive into the submissions folder for 20, 12 and 8 rounds variants)
My pull request for sjcl (javascript crypto) chacha includes those test vectors in "json" format (right now at https://github.com/stbuehler/sjcl/blob/feature-chacha20/test/chacha20_vector..., but hopefully in upstream sjcl soon, in which case I'll delete my feature branch).
regards, Stefan