mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-02 09:16:41 +09:00
xfrm: Fix key lengths for rfc3686(ctr(aes))
[ Upstream commit 4203223a1a ]
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: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d98630f19f
commit
3b9dfc69a2
@@ -462,8 +462,8 @@ static struct xfrm_algo_desc ealg_list[] = {
|
||||
.desc = {
|
||||
.sadb_alg_id = SADB_X_EALG_AESCTR,
|
||||
.sadb_alg_ivlen = 8,
|
||||
.sadb_alg_minbits = 128,
|
||||
.sadb_alg_maxbits = 256
|
||||
.sadb_alg_minbits = 160,
|
||||
.sadb_alg_maxbits = 288
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user