]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Dec 2011 21:04:52 +0000 (13:04 -0800)
commit57cc6e02424b967f70a4270e4f059d3b9d684605
treefafb27513a6d2df3ea4faecca6401f28e24354d7
parentf9da6299abdae16617736efb545079ddbfe2e380
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: Calvin Owens <jcalvinowens@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/xfrm/xfrm_algo.c