Home
last modified time | relevance | path

Searched refs:sm4_gcm_info (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/net/tls/
Dtls_main.c488 struct tls12_crypto_info_sm4_gcm *sm4_gcm_info = in do_tls_getsockopt_conf() local
492 if (len != sizeof(*sm4_gcm_info)) { in do_tls_getsockopt_conf()
497 memcpy(sm4_gcm_info->iv, in do_tls_getsockopt_conf()
500 memcpy(sm4_gcm_info->rec_seq, cctx->rec_seq, in do_tls_getsockopt_conf()
503 if (copy_to_user(optval, sm4_gcm_info, sizeof(*sm4_gcm_info))) in do_tls_getsockopt_conf()
Dtls_sw.c2599 struct tls12_crypto_info_sm4_gcm *sm4_gcm_info; in tls_set_sw_offload() local
2601 sm4_gcm_info = (void *)crypto_info; in tls_set_sw_offload()
2605 iv = sm4_gcm_info->iv; in tls_set_sw_offload()
2607 rec_seq = sm4_gcm_info->rec_seq; in tls_set_sw_offload()
2609 key = sm4_gcm_info->key; in tls_set_sw_offload()
2610 salt = sm4_gcm_info->salt; in tls_set_sw_offload()