]> 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)
commit6e9082923fa00d8b007a01d3a7d74f6e5efe735a
treeccc9c1ac23ae8669a5860a3e50ed8f13bbd1704b
parentc01d123155ebd44537eabdcb66ccdc180fc55862
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