Re: Question about ctr mode 3des-ede IV len

From: Longpeng (Mike)
Date: Thu Dec 08 2016 - 04:17:39 EST




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)