Lines Matching refs:cipher_desc
2658 const struct tls_cipher_desc *cipher_desc) in init_prot_info() argument
2660 u16 nonce_size = cipher_desc->nonce; in init_prot_info()
2678 prot->tag_size = cipher_desc->tag; in init_prot_info()
2680 prot->iv_size = cipher_desc->iv; in init_prot_info()
2681 prot->salt_size = cipher_desc->salt; in init_prot_info()
2682 prot->rec_seq_size = cipher_desc->rec_seq; in init_prot_info()
2691 const struct tls_cipher_desc *cipher_desc; in tls_set_sw_offload() local
2724 cipher_desc = get_cipher_desc(crypto_info->cipher_type); in tls_set_sw_offload()
2725 if (!cipher_desc) { in tls_set_sw_offload()
2730 rc = init_prot_info(prot, crypto_info, cipher_desc); in tls_set_sw_offload()
2734 iv = crypto_info_iv(crypto_info, cipher_desc); in tls_set_sw_offload()
2735 key = crypto_info_key(crypto_info, cipher_desc); in tls_set_sw_offload()
2736 salt = crypto_info_salt(crypto_info, cipher_desc); in tls_set_sw_offload()
2737 rec_seq = crypto_info_rec_seq(crypto_info, cipher_desc); in tls_set_sw_offload()
2739 memcpy(cctx->iv, salt, cipher_desc->salt); in tls_set_sw_offload()
2740 memcpy(cctx->iv + cipher_desc->salt, iv, cipher_desc->iv); in tls_set_sw_offload()
2741 memcpy(cctx->rec_seq, rec_seq, cipher_desc->rec_seq); in tls_set_sw_offload()
2744 *aead = crypto_alloc_aead(cipher_desc->cipher_name, 0, 0); in tls_set_sw_offload()
2754 rc = crypto_aead_setkey(*aead, key, cipher_desc->key); in tls_set_sw_offload()