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 <redacted>
Nice catch, thanks!
This is what I was talking about last time.
Tested-by: Vadim Fedorenko <redacted>