commit | 4203223a1aed862b4445fdcd260d6139603a51d9 | [log] [tgz] |
---|---|---|
author | Tushar Gohad <tgohad@mvista.com> | Thu Jul 28 10:36:20 2011 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Jul 28 18:10:48 2011 -0700 |
tree | 1fd4906acba67bcc2c2be204af51996fdfbbb2ab | |
parent | 55f9c40ff632d03c527d6a6ceddcda0a224587a6 [diff] |
xfrm: Fix key lengths for rfc3686(ctr(aes)) 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>