Home
last modified time | relevance | path

Searched refs:crypto_info (Results 1 – 4 of 4) sorted by relevance

/net/tls/
Dtls_main.c341 struct tls_crypto_info *crypto_info; in do_tls_getsockopt_conf() local
348 if (!optval || (len < sizeof(*crypto_info))) { in do_tls_getsockopt_conf()
360 crypto_info = &ctx->crypto_send.info; in do_tls_getsockopt_conf()
363 crypto_info = &ctx->crypto_recv.info; in do_tls_getsockopt_conf()
367 if (!TLS_CRYPTO_INFO_READY(crypto_info)) { in do_tls_getsockopt_conf()
372 if (len == sizeof(*crypto_info)) { in do_tls_getsockopt_conf()
373 if (copy_to_user(optval, crypto_info, sizeof(*crypto_info))) in do_tls_getsockopt_conf()
378 switch (crypto_info->cipher_type) { in do_tls_getsockopt_conf()
382 container_of(crypto_info, in do_tls_getsockopt_conf()
404 container_of(crypto_info, in do_tls_getsockopt_conf()
[all …]
Dtls_sw.c2316 struct tls_crypto_info *crypto_info; in tls_set_sw_offload() local
2365 crypto_info = &ctx->crypto_send.info; in tls_set_sw_offload()
2374 crypto_info = &ctx->crypto_recv.info; in tls_set_sw_offload()
2380 switch (crypto_info->cipher_type) { in tls_set_sw_offload()
2385 iv = ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->iv; in tls_set_sw_offload()
2388 ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->rec_seq; in tls_set_sw_offload()
2390 (struct tls12_crypto_info_aes_gcm_128 *)crypto_info; in tls_set_sw_offload()
2402 iv = ((struct tls12_crypto_info_aes_gcm_256 *)crypto_info)->iv; in tls_set_sw_offload()
2405 ((struct tls12_crypto_info_aes_gcm_256 *)crypto_info)->rec_seq; in tls_set_sw_offload()
2407 (struct tls12_crypto_info_aes_gcm_256 *)crypto_info; in tls_set_sw_offload()
[all …]
Dtls_device.c1022 struct tls_crypto_info *crypto_info; in tls_set_device_offload() local
1045 crypto_info = &ctx->crypto_send.info; in tls_set_device_offload()
1046 if (crypto_info->version != TLS_1_2_VERSION) { in tls_set_device_offload()
1051 switch (crypto_info->cipher_type) { in tls_set_device_offload()
1056 iv = ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->iv; in tls_set_device_offload()
1059 ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->rec_seq; in tls_set_device_offload()
1072 prot->version = crypto_info->version; in tls_set_device_offload()
1073 prot->cipher_type = crypto_info->cipher_type; in tls_set_device_offload()
1094 rc = tls_sw_fallback_init(sk, offload_ctx, crypto_info); in tls_set_device_offload()
Dtls_device_fallback.c448 struct tls_crypto_info *crypto_info) in tls_sw_fallback_init() argument
462 key = ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->key; in tls_sw_fallback_init()