Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752328AbcLHJEk (ORCPT ); Thu, 8 Dec 2016 04:04:40 -0500 Received: from helcar.hengli.com.au ([209.40.204.226]:47833 "EHLO helcar.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751989AbcLHJEh (ORCPT ); Thu, 8 Dec 2016 04:04:37 -0500 Date: Thu, 8 Dec 2016 17:04:15 +0800 From: Herbert Xu To: "Longpeng (Mike)" Cc: jussi.kivilinna@iki.fi, jussi.kivilinna@haltian.com, Gonglei , "Zhoujian (jay, Euler)" , "Wubin (H)" , linux-kernel@vger.kernel.org Subject: Re: Question about ctr mode 3des-ede IV len Message-ID: <20161208090415.GA22932@gondor.apana.org.au> References: <584803E4.1040704@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <584803E4.1040704@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 579 Lines: 16 On Wed, Dec 07, 2016 at 08:43:16PM +0800, Longpeng (Mike) wrote: > Hi Jussi and Herbert, > > I saw serveral des3-ede testcases(in crypto/testmgr.h) has 16-bytes IV, and the > libgcrypt/nettle/RFC1851 said the IV-len is 8-bytes. > > Would you please tell me why these testcases has 16-bytes IV ? I think they were automatically generated. Only the first eight bytes are actually used so the IV size is still 8. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt