Searched refs:crypto_info (Results 1 – 4 of 4) sorted by relevance
341 struct tls_crypto_info *crypto_info; in do_tls_getsockopt_conf() local348 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 …]
2316 struct tls_crypto_info *crypto_info; in tls_set_sw_offload() local2365 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 …]
1022 struct tls_crypto_info *crypto_info; in tls_set_device_offload() local1045 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()
448 struct tls_crypto_info *crypto_info) in tls_sw_fallback_init() argument462 key = ((struct tls12_crypto_info_aes_gcm_128 *)crypto_info)->key; in tls_sw_fallback_init()