linux-stable/net/tls
Tianjia Zhang 275827a7dc net/tls: Fix authentication failure in CCM mode
commit 5961060692 upstream.

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: f295b3ae9f ("net/tls: Add support of AES128-CCM based ciphers")
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Cc: Vakul Garg <vakul.garg@nxp.com>
Cc: stable@vger.kernel.org # v5.2+
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-08 09:04:41 +01:00
..
Kconfig
Makefile
tls_device.c
tls_device_fallback.c
tls_main.c tls: fix replacing proto_ops 2021-12-01 09:04:53 +01:00
tls_proc.c
tls_sw.c net/tls: Fix authentication failure in CCM mode 2021-12-08 09:04:41 +01:00
tls_toe.c
trace.c
trace.h