commit | c2b7b20aedfa10de3634877c3e4b7bc9a7d6461e | [log] [tgz] |
---|---|---|
author | Martin Willi <martin@strongswan.org> | Tue Jun 16 11:34:16 2015 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Jun 17 15:35:11 2015 +0800 |
tree | ccc9c1ac23ae8669a5860a3e50ed8f13bbd1704b | |
parent | 8f69b763877a20fe06cb8d89b031a7ae73b269f2 [diff] |
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>