]> git.ipfire.org Git - people/arne_f/kernel.git/commit
xfrm: Fix key lengths for rfc3686(ctr(aes))
authorTushar Gohad <tgohad@mvista.com>
Thu, 28 Jul 2011 10:36:20 +0000 (10:36 +0000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 16 Jan 2013 21:45:03 +0000 (16:45 -0500)
commite6a06a380db7a1c307bba91233faf07678e52d75
treef40f83b04137ac248b8495bf8684984fe09ed638
parent264266e6897dd81c894d1c5cbd90b133707b32f3
xfrm: Fix key lengths for rfc3686(ctr(aes))

commit 4203223a1aed862b4445fdcd260d6139603a51d9 upstream.

Fix the min and max bit lengths for AES-CTR (RFC3686) keys.
The number of bits in key spec is the key length (128/256)
plus 32 bits of nonce.

This change takes care of the "Invalid key length" errors
reported by setkey when specifying 288 bit keys for aes-ctr.

Signed-off-by: Tushar Gohad <tgohad@mvista.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/xfrm/xfrm_algo.c