Skip to content

Commit

Permalink
net/tls: tls_crypto_context add supported algorithms context
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tianjia Zhang authored and David S. Miller committed Oct 25, 2021
1 parent 2c087df commit 39d8fb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/net/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};

Expand Down

0 comments on commit 39d8fb9

Please sign in to comment.