From: Tushar Gohad Date: Thu, 28 Jul 2011 10:36:20 +0000 (+0000) Subject: xfrm: Fix key lengths for rfc3686(ctr(aes)) X-Git-Tag: v3.1-rc1~24^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4203223a1aed862b4445fdcd260d6139603a51d9;p=pandora-kernel.git 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 Acked-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed