]> Git Repo - linux.git/commit - crypto/testmgr.c
crypto: testmgr - Add ChaCha20 test vectors from RFC7539
authorMartin Willi <[email protected]>
Mon, 1 Jun 2015 11:43:57 +0000 (13:43 +0200)
committerHerbert Xu <[email protected]>
Thu, 4 Jun 2015 07:04:50 +0000 (15:04 +0800)
commit3590ebf2b4c40aa4b663c4f2b9dfeb0a1e0b8f32
tree8a15272cb024651d24779bef34c43774ca619bfe
parentc08d0e647305c3f8f640010a56c9e4bafb9488d3
crypto: testmgr - Add ChaCha20 test vectors from RFC7539

We explicitly set the Initial block Counter by prepending it to the nonce in
Little Endian. The same test vector is used for both encryption and decryption,
ChaCha20 is a cipher XORing a keystream.

Signed-off-by: Martin Willi <[email protected]>
Acked-by: Steffen Klassert <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
crypto/testmgr.c
crypto/testmgr.h
This page took 0.051045 seconds and 4 git commands to generate.