All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/tls: tls_crypto_context add supported algorithms context
@ 2021-10-25 13:04 Tianjia Zhang
  2021-10-25 15:40 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Tianjia Zhang @ 2021-10-25 13:04 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski, Boris Pismenny, John Fastabend,
	Daniel Borkmann, netdev, linux-kernel
  Cc: Tianjia Zhang

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>
---
 include/net/tls.h | 2 ++
 1 file changed, 2 insertions(+)

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;
 	};
 };
 
-- 
2.19.1.3.ge56e4f7


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/tls: tls_crypto_context add supported algorithms context
  2021-10-25 13:04 [PATCH] net/tls: tls_crypto_context add supported algorithms context Tianjia Zhang
@ 2021-10-25 15:40 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-10-25 15:40 UTC (permalink / raw)
  To: Tianjia Zhang
  Cc: davem, kuba, borisp, john.fastabend, daniel, netdev, linux-kernel

Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Mon, 25 Oct 2021 21:04:39 +0800 you wrote:
> 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>
> ---
>  include/net/tls.h | 2 ++
>  1 file changed, 2 insertions(+)

Here is the summary with links:
  - net/tls: tls_crypto_context add supported algorithms context
    https://git.kernel.org/netdev/net-next/c/39d8fb96e3d7

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-25 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25 13:04 [PATCH] net/tls: tls_crypto_context add supported algorithms context Tianjia Zhang
2021-10-25 15:40 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.