[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <58494432.3010102@huawei.com>
Date: Thu, 8 Dec 2016 19:29:54 +0800
From: "Longpeng (Mike)" <longpeng2@...wei.com>
To: Jussi Kivilinna <jussi.kivilinna@....fi>
CC: <jussi.kivilinna@...tian.com>, <herbert@...dor.apana.org.au>,
Gonglei <arei.gonglei@...wei.com>,
"Zhoujian (jay, Euler)" <jianjay.zhou@...wei.com>,
"Wubin (H)" <wu.wubin@...wei.com>, <linux-kernel@...r.kernel.org>
Subject: Re: Question about ctr mode 3des-ede IV len
Hi Jussi,
On 2016/12/7 21:15, Jussi Kivilinna wrote:
> Hello,
>
> 07.12.2016, 14:43, Longpeng (Mike) kirjoitti:
>> 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 ?
>
> Because I used same tool to create test-vectors which I had previously used to create AES/Camellia/Serpent/Twofish test-vectors. So, I must have forgotten to change 16-byte IV generation to 8 bytes and thus those testcases in crypto/testmgr.h have wrong length. The extra trailing 8 bytes are not used and can be removed.
>
Thank you very much. :)
> -Jussi
>
>>
>> Thank you. :)
>>
>
> .
>
--
Regards,
Longpeng(Mike)
Powered by blists - more mailing lists