]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - crypto/seqiv.c
crypto: seqiv - Ensure that IV size is at least 8 bytes
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jan 2015 08:51:20 +0000 (19:51 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Jan 2015 03:44:16 +0000 (14:44 +1100)
commitc0ecf8916d28e99fd072514f19fd36ee42a6ad7e
tree01ed2ac2425a2072055fd6af1a87f2146ec331e3
parent988dc0174411ad4b98c173f3d7d25aca9e56cd85
crypto: seqiv - Ensure that IV size is at least 8 bytes

Since seqiv is designed for IPsec we need to be able to accomodate
the whole IPsec sequence number in order to ensure the uniqueness
of the IV.

This patch forbids any algorithm with an IV size of less than 8
from using it.  This should have no impact on existing users since
they all have an IV size of 8.

Reported-by: Maciej ?enczykowski <zenczykowski@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Maciej ?enczykowski <zenczykowski@gmail.com>
crypto/seqiv.c