net/tls: support SM4 GCM/CCM algorithm
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Thu, 16 Sep 2021 03:37:38 +0000 (11:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Sep 2021 13:36:26 +0000 (14:36 +0100)
commit227b9644ab16d2ecd98d593edbe15c32c0c9620a
treeff65b8bc94c89fa11eb9425f252876a84937e825
parentd1ab2647de3272e878604720ac0af66442e8d1d3
net/tls: support SM4 GCM/CCM algorithm

The RFC8998 specification defines the use of the ShangMi algorithm
cipher suites in TLS 1.3, and also supports the GCM/CCM mode using
the SM4 algorithm.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/tls.h
net/tls/tls_main.c
net/tls/tls_sw.c