]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: seqiv - Replace seqniv with seqiv
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 8 Jul 2015 23:17:22 +0000 (07:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 14 Jul 2015 06:56:46 +0000 (14:56 +0800)
commita1ec5c09e8c3a069783989b0a6d779b41722ce24
tree306cb5e1d0be7cce24026c80a4ae9cc9030e5be7
parentf0032aaec9e5e9e94b74260467e4463fa135b07c
crypto: seqiv - Replace seqniv with seqiv

This patch replaces the seqniv generator with seqiv when the
underlying algorithm understands the new calling convention.

This not only makes more sense as now seqiv is solely responsible
for IV generation rather than also determining how the IV is going
to be used, it also allows for optimisations in the underlying
implementation.  For example, the space for the IV could be used
to add padding for authentication.

This patch also removes the unnecessary copying of IV to dst
during seqiv decryption as the IV is part of the AD and not cipher
text.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/seqiv.c