Lines Matching refs:cipher_desc
2668 const struct tls_cipher_desc *cipher_desc;
2697 cipher_desc = get_cipher_desc(crypto_info->cipher_type);
2698 if (!cipher_desc) {
2703 nonce_size = cipher_desc->nonce;
2705 iv = crypto_info_iv(crypto_info, cipher_desc);
2706 key = crypto_info_key(crypto_info, cipher_desc);
2707 salt = crypto_info_salt(crypto_info, cipher_desc);
2708 rec_seq = crypto_info_rec_seq(crypto_info, cipher_desc);
2728 prot->tag_size = cipher_desc->tag;
2731 prot->iv_size = cipher_desc->iv;
2732 prot->salt_size = cipher_desc->salt;
2733 cctx->iv = kmalloc(cipher_desc->iv + cipher_desc->salt, GFP_KERNEL);
2739 prot->rec_seq_size = cipher_desc->rec_seq;
2740 memcpy(cctx->iv, salt, cipher_desc->salt);
2741 memcpy(cctx->iv + cipher_desc->salt, iv, cipher_desc->iv);
2743 cctx->rec_seq = kmemdup(rec_seq, cipher_desc->rec_seq, GFP_KERNEL);
2750 *aead = crypto_alloc_aead(cipher_desc->cipher_name, 0, 0);
2760 rc = crypto_aead_setkey(*aead, key, cipher_desc->key);