From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] xfrm: Fix key lengths for rfc3686(ctr(aes)) Date: Thu, 28 Jul 2011 18:25:50 -0700 (PDT) Message-ID: <20110728.182550.32786681614701904.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: latten@austin.ibm.com, herbert@gondor.hengli.com.au, netdev@vger.kernel.org To: tgohad@mvista.com Return-path: Received: from shards.monkeyblade.net ([198.137.202.13]:38133 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755647Ab1G2B16 (ORCPT ); Thu, 28 Jul 2011 21:27:58 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Tushar Gohad Date: Thu, 28 Jul 2011 13:36:20 -0700 (MST) > > 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 APplied.