* [PATCH v3 net-next] net: tls: Add ARIA-GCM algorithm
@ 2022-09-25 15:00 Taehee Yoo
2022-09-26 21:43 ` Vadim Fedorenko
2022-09-28 0:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Taehee Yoo @ 2022-09-25 15:00 UTC (permalink / raw)
To: davem, kuba, pabeni, edumazet, netdev, herbert, borisp, john.fastabend
Cc: ap420073
RFC 6209 describes ARIA for TLS 1.2.
ARIA-128-GCM and ARIA-256-GCM are defined in RFC 6209.
This patch would offer performance increment and an opportunity for
hardware offload.
Benchmark results:
iperf-ssl are used.
CPU: intel i3-12100.
TLS(openssl-3.0-dev)
[ 3] 0.0- 1.0 sec 185 MBytes 1.55 Gbits/sec
[ 3] 1.0- 2.0 sec 186 MBytes 1.56 Gbits/sec
[ 3] 2.0- 3.0 sec 186 MBytes 1.56 Gbits/sec
[ 3] 3.0- 4.0 sec 186 MBytes 1.56 Gbits/sec
[ 3] 4.0- 5.0 sec 186 MBytes 1.56 Gbits/sec
[ 3] 0.0- 5.0 sec 927 MBytes 1.56 Gbits/sec
kTLS(aria-generic)
[ 3] 0.0- 1.0 sec 198 MBytes 1.66 Gbits/sec
[ 3] 1.0- 2.0 sec 194 MBytes 1.62 Gbits/sec
[ 3] 2.0- 3.0 sec 194 MBytes 1.63 Gbits/sec
[ 3] 3.0- 4.0 sec 194 MBytes 1.63 Gbits/sec
[ 3] 4.0- 5.0 sec 194 MBytes 1.62 Gbits/sec
[ 3] 0.0- 5.0 sec 974 MBytes 1.63 Gbits/sec
kTLS(aria-avx wirh GFNI)
[ 3] 0.0- 1.0 sec 632 MBytes 5.30 Gbits/sec
[ 3] 1.0- 2.0 sec 657 MBytes 5.51 Gbits/sec
[ 3] 2.0- 3.0 sec 657 MBytes 5.51 Gbits/sec
[ 3] 3.0- 4.0 sec 656 MBytes 5.50 Gbits/sec
[ 3] 4.0- 5.0 sec 656 MBytes 5.50 Gbits/sec
[ 3] 0.0- 5.0 sec 3.18 GBytes 5.47 Gbits/sec
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
---
v2:
- This patch was a part of patchset of implementation of aria algorithm[1].
There were 3 patches in the patchset, the target branch of the first
and second patch were the crypto and these were merged[2].
This patch was the last patch of that patchset and the target branch of
this patch is net-next, not crypto. So it was not merged by the crypto
branch.
It waited for merging of these two patches.
v3:
- There are no code changes in this patch.
- Update benchmark data with aria-avx.
[1] https://lore.kernel.org/netdev/20220704094250.4265-4-ap420073@gmail.com/
[2] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/tree/crypto/aria.c
include/uapi/linux/tls.h | 30 +++++++++++++++++++
net/tls/tls_main.c | 62 ++++++++++++++++++++++++++++++++++++++++
net/tls/tls_sw.c | 34 ++++++++++++++++++++++
3 files changed, 126 insertions(+)
diff --git a/include/uapi/linux/tls.h b/include/uapi/linux/tls.h
index f1157d8f4acd..b66a800389cc 100644
--- a/include/uapi/linux/tls.h
+++ b/include/uapi/linux/tls.h
@@ -100,6 +100,20 @@
#define TLS_CIPHER_SM4_CCM_TAG_SIZE 16
#define TLS_CIPHER_SM4_CCM_REC_SEQ_SIZE 8
+#define TLS_CIPHER_ARIA_GCM_128 57
+#define TLS_CIPHER_ARIA_GCM_128_IV_SIZE 8
+#define TLS_CIPHER_ARIA_GCM_128_KEY_SIZE 16
+#define TLS_CIPHER_ARIA_GCM_128_SALT_SIZE 4
+#define TLS_CIPHER_ARIA_GCM_128_TAG_SIZE 16
+#define TLS_CIPHER_ARIA_GCM_128_REC_SEQ_SIZE 8
+
+#define TLS_CIPHER_ARIA_GCM_256 58
+#define TLS_CIPHER_ARIA_GCM_256_IV_SIZE 8
+#define TLS_CIPHER_ARIA_GCM_256_KEY_SIZE 32
+#define TLS_CIPHER_ARIA_GCM_256_SALT_SIZE 4
+#define TLS_CIPHER_ARIA_GCM_256_TAG_SIZE 16
+#define TLS_CIPHER_ARIA_GCM_256_REC_SEQ_SIZE 8
+
#define TLS_SET_RECORD_TYPE 1
#define TLS_GET_RECORD_TYPE 2
@@ -156,6 +170,22 @@ struct tls12_crypto_info_sm4_ccm {
unsigned char rec_seq[TLS_CIPHER_SM4_CCM_REC_SEQ_SIZE];
};
+struct tls12_crypto_info_aria_gcm_128 {
+ struct tls_crypto_info info;
+ unsigned char iv[TLS_CIPHER_ARIA_GCM_128_IV_SIZE];
+ unsigned char key[TLS_CIPHER_ARIA_GCM_128_KEY_SIZE];
+ unsigned char salt[TLS_CIPHER_ARIA_GCM_128_SALT_SIZE];
+ unsigned char rec_seq[TLS_CIPHER_ARIA_GCM_128_REC_SEQ_SIZE];
+};
+
+struct tls12_crypto_info_aria_gcm_256 {
+ struct tls_crypto_info info;
+ unsigned char iv[TLS_CIPHER_ARIA_GCM_256_IV_SIZE];
+ unsigned char key[TLS_CIPHER_ARIA_GCM_256_KEY_SIZE];
+ unsigned char salt[TLS_CIPHER_ARIA_GCM_256_SALT_SIZE];
+ unsigned char rec_seq[TLS_CIPHER_ARIA_GCM_256_REC_SEQ_SIZE];
+};
+
enum {
TLS_INFO_UNSPEC,
TLS_INFO_VERSION,
diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c
index 5cc6911cc97d..3735cb00905d 100644
--- a/net/tls/tls_main.c
+++ b/net/tls/tls_main.c
@@ -524,6 +524,54 @@ static int do_tls_getsockopt_conf(struct sock *sk, char __user *optval,
rc = -EFAULT;
break;
}
+ case TLS_CIPHER_ARIA_GCM_128: {
+ struct tls12_crypto_info_aria_gcm_128 *
+ crypto_info_aria_gcm_128 =
+ container_of(crypto_info,
+ struct tls12_crypto_info_aria_gcm_128,
+ info);
+
+ if (len != sizeof(*crypto_info_aria_gcm_128)) {
+ rc = -EINVAL;
+ goto out;
+ }
+ lock_sock(sk);
+ memcpy(crypto_info_aria_gcm_128->iv,
+ cctx->iv + TLS_CIPHER_ARIA_GCM_128_SALT_SIZE,
+ TLS_CIPHER_ARIA_GCM_128_IV_SIZE);
+ memcpy(crypto_info_aria_gcm_128->rec_seq, cctx->rec_seq,
+ TLS_CIPHER_ARIA_GCM_128_REC_SEQ_SIZE);
+ release_sock(sk);
+ if (copy_to_user(optval,
+ crypto_info_aria_gcm_128,
+ sizeof(*crypto_info_aria_gcm_128)))
+ rc = -EFAULT;
+ break;
+ }
+ case TLS_CIPHER_ARIA_GCM_256: {
+ struct tls12_crypto_info_aria_gcm_256 *
+ crypto_info_aria_gcm_256 =
+ container_of(crypto_info,
+ struct tls12_crypto_info_aria_gcm_256,
+ info);
+
+ if (len != sizeof(*crypto_info_aria_gcm_256)) {
+ rc = -EINVAL;
+ goto out;
+ }
+ lock_sock(sk);
+ memcpy(crypto_info_aria_gcm_256->iv,
+ cctx->iv + TLS_CIPHER_ARIA_GCM_256_SALT_SIZE,
+ TLS_CIPHER_ARIA_GCM_256_IV_SIZE);
+ memcpy(crypto_info_aria_gcm_256->rec_seq, cctx->rec_seq,
+ TLS_CIPHER_ARIA_GCM_256_REC_SEQ_SIZE);
+ release_sock(sk);
+ if (copy_to_user(optval,
+ crypto_info_aria_gcm_256,
+ sizeof(*crypto_info_aria_gcm_256)))
+ rc = -EFAULT;
+ break;
+ }
default:
rc = -EINVAL;
}
@@ -685,6 +733,20 @@ static int do_tls_setsockopt_conf(struct sock *sk, sockptr_t optval,
case TLS_CIPHER_SM4_CCM:
optsize = sizeof(struct tls12_crypto_info_sm4_ccm);
break;
+ case TLS_CIPHER_ARIA_GCM_128:
+ if (crypto_info->version != TLS_1_2_VERSION) {
+ rc = -EINVAL;
+ goto err_crypto_info;
+ }
+ optsize = sizeof(struct tls12_crypto_info_aria_gcm_128);
+ break;
+ case TLS_CIPHER_ARIA_GCM_256:
+ if (crypto_info->version != TLS_1_2_VERSION) {
+ rc = -EINVAL;
+ goto err_crypto_info;
+ }
+ optsize = sizeof(struct tls12_crypto_info_aria_gcm_256);
+ break;
default:
rc = -EINVAL;
goto err_crypto_info;
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c
index fe27241cd13f..264cf367e265 100644
--- a/net/tls/tls_sw.c
+++ b/net/tls/tls_sw.c
@@ -2629,6 +2629,40 @@ int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx)
cipher_name = "ccm(sm4)";
break;
}
+ case TLS_CIPHER_ARIA_GCM_128: {
+ struct tls12_crypto_info_aria_gcm_128 *aria_gcm_128_info;
+
+ aria_gcm_128_info = (void *)crypto_info;
+ nonce_size = TLS_CIPHER_ARIA_GCM_128_IV_SIZE;
+ tag_size = TLS_CIPHER_ARIA_GCM_128_TAG_SIZE;
+ iv_size = TLS_CIPHER_ARIA_GCM_128_IV_SIZE;
+ iv = aria_gcm_128_info->iv;
+ rec_seq_size = TLS_CIPHER_ARIA_GCM_128_REC_SEQ_SIZE;
+ rec_seq = aria_gcm_128_info->rec_seq;
+ keysize = TLS_CIPHER_ARIA_GCM_128_KEY_SIZE;
+ key = aria_gcm_128_info->key;
+ salt = aria_gcm_128_info->salt;
+ salt_size = TLS_CIPHER_ARIA_GCM_128_SALT_SIZE;
+ cipher_name = "gcm(aria)";
+ break;
+ }
+ case TLS_CIPHER_ARIA_GCM_256: {
+ struct tls12_crypto_info_aria_gcm_256 *gcm_256_info;
+
+ gcm_256_info = (void *)crypto_info;
+ nonce_size = TLS_CIPHER_ARIA_GCM_256_IV_SIZE;
+ tag_size = TLS_CIPHER_ARIA_GCM_256_TAG_SIZE;
+ iv_size = TLS_CIPHER_ARIA_GCM_256_IV_SIZE;
+ iv = gcm_256_info->iv;
+ rec_seq_size = TLS_CIPHER_ARIA_GCM_256_REC_SEQ_SIZE;
+ rec_seq = gcm_256_info->rec_seq;
+ keysize = TLS_CIPHER_ARIA_GCM_256_KEY_SIZE;
+ key = gcm_256_info->key;
+ salt = gcm_256_info->salt;
+ salt_size = TLS_CIPHER_ARIA_GCM_256_SALT_SIZE;
+ cipher_name = "gcm(aria)";
+ break;
+ }
default:
rc = -EINVAL;
goto free_priv;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3 net-next] net: tls: Add ARIA-GCM algorithm
2022-09-25 15:00 [PATCH v3 net-next] net: tls: Add ARIA-GCM algorithm Taehee Yoo
@ 2022-09-26 21:43 ` Vadim Fedorenko
2022-09-28 0:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Vadim Fedorenko @ 2022-09-26 21:43 UTC (permalink / raw)
To: Taehee Yoo, davem, kuba, pabeni, edumazet, netdev, herbert,
borisp, john.fastabend
On 25.09.2022 16:00, Taehee Yoo wrote:
> RFC 6209 describes ARIA for TLS 1.2.
> ARIA-128-GCM and ARIA-256-GCM are defined in RFC 6209.
>
> This patch would offer performance increment and an opportunity for
> hardware offload.
>
> Benchmark results:
> iperf-ssl are used.
> CPU: intel i3-12100.
>
> TLS(openssl-3.0-dev)
> [ 3] 0.0- 1.0 sec 185 MBytes 1.55 Gbits/sec
> [ 3] 1.0- 2.0 sec 186 MBytes 1.56 Gbits/sec
> [ 3] 2.0- 3.0 sec 186 MBytes 1.56 Gbits/sec
> [ 3] 3.0- 4.0 sec 186 MBytes 1.56 Gbits/sec
> [ 3] 4.0- 5.0 sec 186 MBytes 1.56 Gbits/sec
> [ 3] 0.0- 5.0 sec 927 MBytes 1.56 Gbits/sec
> kTLS(aria-generic)
> [ 3] 0.0- 1.0 sec 198 MBytes 1.66 Gbits/sec
> [ 3] 1.0- 2.0 sec 194 MBytes 1.62 Gbits/sec
> [ 3] 2.0- 3.0 sec 194 MBytes 1.63 Gbits/sec
> [ 3] 3.0- 4.0 sec 194 MBytes 1.63 Gbits/sec
> [ 3] 4.0- 5.0 sec 194 MBytes 1.62 Gbits/sec
> [ 3] 0.0- 5.0 sec 974 MBytes 1.63 Gbits/sec
> kTLS(aria-avx wirh GFNI)
> [ 3] 0.0- 1.0 sec 632 MBytes 5.30 Gbits/sec
> [ 3] 1.0- 2.0 sec 657 MBytes 5.51 Gbits/sec
> [ 3] 2.0- 3.0 sec 657 MBytes 5.51 Gbits/sec
> [ 3] 3.0- 4.0 sec 656 MBytes 5.50 Gbits/sec
> [ 3] 4.0- 5.0 sec 656 MBytes 5.50 Gbits/sec
> [ 3] 0.0- 5.0 sec 3.18 GBytes 5.47 Gbits/sec
>
> Signed-off-by: Taehee Yoo <ap420073@gmail.com>
It looks like there is nothing special in handling this algo in TLS
implementation, common GCM way.
Reviewed-by: Vadim Fedorenko <vfedorenko@novek.ru>
> ---
>
> v2:
> - This patch was a part of patchset of implementation of aria algorithm[1].
> There were 3 patches in the patchset, the target branch of the first
> and second patch were the crypto and these were merged[2].
> This patch was the last patch of that patchset and the target branch of
> this patch is net-next, not crypto. So it was not merged by the crypto
> branch.
> It waited for merging of these two patches.
>
> v3:
> - There are no code changes in this patch.
> - Update benchmark data with aria-avx.
>
> [1] https://lore.kernel.org/netdev/20220704094250.4265-4-ap420073@gmail.com/
> [2] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/tree/crypto/aria.c
>
> include/uapi/linux/tls.h | 30 +++++++++++++++++++
> net/tls/tls_main.c | 62 ++++++++++++++++++++++++++++++++++++++++
> net/tls/tls_sw.c | 34 ++++++++++++++++++++++
> 3 files changed, 126 insertions(+)
>
> diff --git a/include/uapi/linux/tls.h b/include/uapi/linux/tls.h
> index f1157d8f4acd..b66a800389cc 100644
> --- a/include/uapi/linux/tls.h
> +++ b/include/uapi/linux/tls.h
> @@ -100,6 +100,20 @@
> #define TLS_CIPHER_SM4_CCM_TAG_SIZE 16
> #define TLS_CIPHER_SM4_CCM_REC_SEQ_SIZE 8
>
> +#define TLS_CIPHER_ARIA_GCM_128 57
> +#define TLS_CIPHER_ARIA_GCM_128_IV_SIZE 8
> +#define TLS_CIPHER_ARIA_GCM_128_KEY_SIZE 16
> +#define TLS_CIPHER_ARIA_GCM_128_SALT_SIZE 4
> +#define TLS_CIPHER_ARIA_GCM_128_TAG_SIZE 16
> +#define TLS_CIPHER_ARIA_GCM_128_REC_SEQ_SIZE 8
> +
> +#define TLS_CIPHER_ARIA_GCM_256 58
> +#define TLS_CIPHER_ARIA_GCM_256_IV_SIZE 8
> +#define TLS_CIPHER_ARIA_GCM_256_KEY_SIZE 32
> +#define TLS_CIPHER_ARIA_GCM_256_SALT_SIZE 4
> +#define TLS_CIPHER_ARIA_GCM_256_TAG_SIZE 16
> +#define TLS_CIPHER_ARIA_GCM_256_REC_SEQ_SIZE 8
> +
> #define TLS_SET_RECORD_TYPE 1
> #define TLS_GET_RECORD_TYPE 2
>
> @@ -156,6 +170,22 @@ struct tls12_crypto_info_sm4_ccm {
> unsigned char rec_seq[TLS_CIPHER_SM4_CCM_REC_SEQ_SIZE];
> };
>
> +struct tls12_crypto_info_aria_gcm_128 {
> + struct tls_crypto_info info;
> + unsigned char iv[TLS_CIPHER_ARIA_GCM_128_IV_SIZE];
> + unsigned char key[TLS_CIPHER_ARIA_GCM_128_KEY_SIZE];
> + unsigned char salt[TLS_CIPHER_ARIA_GCM_128_SALT_SIZE];
> + unsigned char rec_seq[TLS_CIPHER_ARIA_GCM_128_REC_SEQ_SIZE];
> +};
> +
> +struct tls12_crypto_info_aria_gcm_256 {
> + struct tls_crypto_info info;
> + unsigned char iv[TLS_CIPHER_ARIA_GCM_256_IV_SIZE];
> + unsigned char key[TLS_CIPHER_ARIA_GCM_256_KEY_SIZE];
> + unsigned char salt[TLS_CIPHER_ARIA_GCM_256_SALT_SIZE];
> + unsigned char rec_seq[TLS_CIPHER_ARIA_GCM_256_REC_SEQ_SIZE];
> +};
> +
> enum {
> TLS_INFO_UNSPEC,
> TLS_INFO_VERSION,
> diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c
> index 5cc6911cc97d..3735cb00905d 100644
> --- a/net/tls/tls_main.c
> +++ b/net/tls/tls_main.c
> @@ -524,6 +524,54 @@ static int do_tls_getsockopt_conf(struct sock *sk, char __user *optval,
> rc = -EFAULT;
> break;
> }
> + case TLS_CIPHER_ARIA_GCM_128: {
> + struct tls12_crypto_info_aria_gcm_128 *
> + crypto_info_aria_gcm_128 =
> + container_of(crypto_info,
> + struct tls12_crypto_info_aria_gcm_128,
> + info);
> +
> + if (len != sizeof(*crypto_info_aria_gcm_128)) {
> + rc = -EINVAL;
> + goto out;
> + }
> + lock_sock(sk);
> + memcpy(crypto_info_aria_gcm_128->iv,
> + cctx->iv + TLS_CIPHER_ARIA_GCM_128_SALT_SIZE,
> + TLS_CIPHER_ARIA_GCM_128_IV_SIZE);
> + memcpy(crypto_info_aria_gcm_128->rec_seq, cctx->rec_seq,
> + TLS_CIPHER_ARIA_GCM_128_REC_SEQ_SIZE);
> + release_sock(sk);
> + if (copy_to_user(optval,
> + crypto_info_aria_gcm_128,
> + sizeof(*crypto_info_aria_gcm_128)))
> + rc = -EFAULT;
> + break;
> + }
> + case TLS_CIPHER_ARIA_GCM_256: {
> + struct tls12_crypto_info_aria_gcm_256 *
> + crypto_info_aria_gcm_256 =
> + container_of(crypto_info,
> + struct tls12_crypto_info_aria_gcm_256,
> + info);
> +
> + if (len != sizeof(*crypto_info_aria_gcm_256)) {
> + rc = -EINVAL;
> + goto out;
> + }
> + lock_sock(sk);
> + memcpy(crypto_info_aria_gcm_256->iv,
> + cctx->iv + TLS_CIPHER_ARIA_GCM_256_SALT_SIZE,
> + TLS_CIPHER_ARIA_GCM_256_IV_SIZE);
> + memcpy(crypto_info_aria_gcm_256->rec_seq, cctx->rec_seq,
> + TLS_CIPHER_ARIA_GCM_256_REC_SEQ_SIZE);
> + release_sock(sk);
> + if (copy_to_user(optval,
> + crypto_info_aria_gcm_256,
> + sizeof(*crypto_info_aria_gcm_256)))
> + rc = -EFAULT;
> + break;
> + }
> default:
> rc = -EINVAL;
> }
> @@ -685,6 +733,20 @@ static int do_tls_setsockopt_conf(struct sock *sk, sockptr_t optval,
> case TLS_CIPHER_SM4_CCM:
> optsize = sizeof(struct tls12_crypto_info_sm4_ccm);
> break;
> + case TLS_CIPHER_ARIA_GCM_128:
> + if (crypto_info->version != TLS_1_2_VERSION) {
> + rc = -EINVAL;
> + goto err_crypto_info;
> + }
> + optsize = sizeof(struct tls12_crypto_info_aria_gcm_128);
> + break;
> + case TLS_CIPHER_ARIA_GCM_256:
> + if (crypto_info->version != TLS_1_2_VERSION) {
> + rc = -EINVAL;
> + goto err_crypto_info;
> + }
> + optsize = sizeof(struct tls12_crypto_info_aria_gcm_256);
> + break;
> default:
> rc = -EINVAL;
> goto err_crypto_info;
> diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c
> index fe27241cd13f..264cf367e265 100644
> --- a/net/tls/tls_sw.c
> +++ b/net/tls/tls_sw.c
> @@ -2629,6 +2629,40 @@ int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx)
> cipher_name = "ccm(sm4)";
> break;
> }
> + case TLS_CIPHER_ARIA_GCM_128: {
> + struct tls12_crypto_info_aria_gcm_128 *aria_gcm_128_info;
> +
> + aria_gcm_128_info = (void *)crypto_info;
> + nonce_size = TLS_CIPHER_ARIA_GCM_128_IV_SIZE;
> + tag_size = TLS_CIPHER_ARIA_GCM_128_TAG_SIZE;
> + iv_size = TLS_CIPHER_ARIA_GCM_128_IV_SIZE;
> + iv = aria_gcm_128_info->iv;
> + rec_seq_size = TLS_CIPHER_ARIA_GCM_128_REC_SEQ_SIZE;
> + rec_seq = aria_gcm_128_info->rec_seq;
> + keysize = TLS_CIPHER_ARIA_GCM_128_KEY_SIZE;
> + key = aria_gcm_128_info->key;
> + salt = aria_gcm_128_info->salt;
> + salt_size = TLS_CIPHER_ARIA_GCM_128_SALT_SIZE;
> + cipher_name = "gcm(aria)";
> + break;
> + }
> + case TLS_CIPHER_ARIA_GCM_256: {
> + struct tls12_crypto_info_aria_gcm_256 *gcm_256_info;
> +
> + gcm_256_info = (void *)crypto_info;
> + nonce_size = TLS_CIPHER_ARIA_GCM_256_IV_SIZE;
> + tag_size = TLS_CIPHER_ARIA_GCM_256_TAG_SIZE;
> + iv_size = TLS_CIPHER_ARIA_GCM_256_IV_SIZE;
> + iv = gcm_256_info->iv;
> + rec_seq_size = TLS_CIPHER_ARIA_GCM_256_REC_SEQ_SIZE;
> + rec_seq = gcm_256_info->rec_seq;
> + keysize = TLS_CIPHER_ARIA_GCM_256_KEY_SIZE;
> + key = gcm_256_info->key;
> + salt = gcm_256_info->salt;
> + salt_size = TLS_CIPHER_ARIA_GCM_256_SALT_SIZE;
> + cipher_name = "gcm(aria)";
> + break;
> + }
> default:
> rc = -EINVAL;
> goto free_priv;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3 net-next] net: tls: Add ARIA-GCM algorithm
2022-09-25 15:00 [PATCH v3 net-next] net: tls: Add ARIA-GCM algorithm Taehee Yoo
2022-09-26 21:43 ` Vadim Fedorenko
@ 2022-09-28 0:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-09-28 0:40 UTC (permalink / raw)
To: Taehee Yoo
Cc: davem, kuba, pabeni, edumazet, netdev, herbert, borisp, john.fastabend
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 25 Sep 2022 15:00:33 +0000 you wrote:
> RFC 6209 describes ARIA for TLS 1.2.
> ARIA-128-GCM and ARIA-256-GCM are defined in RFC 6209.
>
> This patch would offer performance increment and an opportunity for
> hardware offload.
>
> Benchmark results:
> iperf-ssl are used.
> CPU: intel i3-12100.
>
> [...]
Here is the summary with links:
- [v3,net-next] net: tls: Add ARIA-GCM algorithm
https://git.kernel.org/netdev/net-next/c/62e56ef57c04
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] 3+ messages in thread
end of thread, other threads:[~2022-09-28 0:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-25 15:00 [PATCH v3 net-next] net: tls: Add ARIA-GCM algorithm Taehee Yoo
2022-09-26 21:43 ` Vadim Fedorenko
2022-09-28 0: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.