diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2021-10-25 21:04:39 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-25 15:54:46 +0100 |
commit | 39d8fb96e3d74aa55143eb1d076800af87505cfa (patch) | |
tree | 2f9ab2aa9b619e55c278d888b8d9e82deacfbfc3 /include | |
parent | 2c087dfcc9d5e7e8557d217f01f58ba42d1ddbf1 (diff) | |
download | linux-39d8fb96e3d74aa55143eb1d076800af87505cfa.tar.bz2 |
net/tls: tls_crypto_context add supported algorithms context
tls already supports the SM4 GCM/CCM algorithms. It is also necessary
to add support for these two algorithms in tls_crypto_context to avoid
potential issues caused by forced type conversion.
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/tls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/tls.h b/include/net/tls.h index b6d40642afdd..adab19a8aed7 100644 --- a/include/net/tls.h +++ b/include/net/tls.h @@ -221,6 +221,8 @@ union tls_crypto_context { struct tls12_crypto_info_aes_gcm_128 aes_gcm_128; struct tls12_crypto_info_aes_gcm_256 aes_gcm_256; struct tls12_crypto_info_chacha20_poly1305 chacha20_poly1305; + struct tls12_crypto_info_sm4_gcm sm4_gcm; + struct tls12_crypto_info_sm4_ccm sm4_ccm; }; }; |