]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: poly1305 - Pass key as first two message blocks to each desc_ctx
authorMartin Willi <martin@strongswan.org>
Tue, 16 Jun 2015 09:34:16 +0000 (11:34 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 17 Jun 2015 07:35:11 +0000 (15:35 +0800)
commitf87446b62bc53c18746b5e1ccc8f4c969b698cd8
treeccc9c1ac23ae8669a5860a3e50ed8f13bbd1704b
parent9875c073a3783e39b03a1de412f0102039489358
crypto: poly1305 - Pass key as first two message blocks to each desc_ctx

The Poly1305 authenticator requires a unique key for each generated tag. This
implies that we can't set the key per tfm, as multiple users set individual
keys. Instead we pass a desc specific key as the first two blocks of the
message to authenticate in update().

Signed-off-by: Martin Willi <martin@strongswan.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/chacha20poly1305.c
crypto/poly1305_generic.c
crypto/testmgr.h