Lines Matching refs:cipher_desc
441 const struct tls_cipher_desc *cipher_desc; in do_tls_getsockopt_conf() local
480 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_getsockopt_conf()
481 if (!cipher_desc || len != cipher_desc->crypto_info) { in do_tls_getsockopt_conf()
486 memcpy(crypto_info_iv(crypto_info, cipher_desc), in do_tls_getsockopt_conf()
487 cctx->iv + cipher_desc->salt, cipher_desc->iv); in do_tls_getsockopt_conf()
488 memcpy(crypto_info_rec_seq(crypto_info, cipher_desc), in do_tls_getsockopt_conf()
489 cctx->rec_seq, cipher_desc->rec_seq); in do_tls_getsockopt_conf()
491 if (copy_to_user(optval, crypto_info, cipher_desc->crypto_info)) in do_tls_getsockopt_conf()
618 const struct tls_cipher_desc *cipher_desc; in do_tls_setsockopt_conf() local
650 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in do_tls_setsockopt_conf()
651 if (!cipher_desc) { in do_tls_setsockopt_conf()
656 if (optlen != cipher_desc->crypto_info) { in do_tls_setsockopt_conf()