Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752208AbcLHJRg (ORCPT ); Thu, 8 Dec 2016 04:17:36 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:51966 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751772AbcLHJRe (ORCPT ); Thu, 8 Dec 2016 04:17:34 -0500 Message-ID: <5849240D.1000000@huawei.com> Date: Thu, 8 Dec 2016 17:12:45 +0800 From: "Longpeng (Mike)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Herbert Xu CC: , , Gonglei , "Zhoujian (jay, Euler)" , "Wubin (H)" , Subject: Re: Question about ctr mode 3des-ede IV len References: <584803E4.1040704@huawei.com> <20161208090415.GA22932@gondor.apana.org.au> In-Reply-To: <20161208090415.GA22932@gondor.apana.org.au> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.246.209] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 541 Lines: 23 On 2016/12/8 17:04, Herbert Xu wrote: > 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, Cool, thank you very much! :) -- Regards, Longpeng(Mike)