[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <31dd5d45-d6cc-1074-ff55-e989f67e1016@linux.alibaba.com>
Date: Wed, 1 Dec 2021 17:55:22 +0800
From: Tianjia Zhang <tianjia.zhang@...ux.alibaba.com>
To: Vadim Fedorenko <vfedorenko@...ek.ru>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Boris Pismenny <borisp@...dia.com>,
John Fastabend <john.fastabend@...il.com>,
netdev@...r.kernel.org
Subject: Re: [PATCH] net/tls: Fix authentication failure in CCM mode
Hi Vadim,
On 11/30/21 6:39 AM, Vadim Fedorenko wrote:
> On 29.11.2021 09:32, Tianjia Zhang wrote:
>> When the TLS cipher suite uses CCM mode, including AES CCM and
>> SM4 CCM, the first byte of the B0 block is flags, and the real
>> IV starts from the second byte. The XOR operation of the IV and
>> rec_seq should be skip this byte, that is, add the iv_offset.
>>
>> Fixes: f295b3ae9f59 ("net/tls: Add support of AES128-CCM based ciphers")
>> Signed-off-by: Tianjia Zhang <tianjia.zhang@...ux.alibaba.com>
>
> Nice catch, thanks!
> This is what I was talking about last time.
>
> Tested-by: Vadim Fedorenko <vfedorenko@...ek.ru>
David has applied this patch, the tested tag may not be added, still
thanks for your test.
Kind regards,
Tianjia
Powered by blists - more mailing lists