diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2021-11-29 17:32:12 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-29 12:48:28 +0000 |
commit | 5961060692f8b17cd2080620a3d27b95d2ae05ca (patch) | |
tree | 62e480923a500499c1a9297164ab5260da08f637 /drivers/mtd/ubi/Makefile | |
parent | ef56b64001625c84e80ff7e061ccb0f28e606abb (diff) | |
download | linux-5961060692f8b17cd2080620a3d27b95d2ae05ca.tar.bz2 |
net/tls: Fix authentication failure in CCM mode
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@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>
Diffstat (limited to 'drivers/mtd/ubi/Makefile')
0 files changed, 0 insertions, 0 deletions