Searched refs:tfm2 (Results 1 – 2 of 2) sorted by relevance
73 struct crypto_skcipher *tfm2; in aes_siv_encrypt() local116 tfm2 = crypto_alloc_skcipher("ctr(aes)", 0, CRYPTO_ALG_ASYNC); in aes_siv_encrypt()117 if (IS_ERR(tfm2)) { in aes_siv_encrypt()119 return PTR_ERR(tfm2); in aes_siv_encrypt()122 res = crypto_skcipher_setkey(tfm2, key + key_len, key_len); in aes_siv_encrypt()126 req = skcipher_request_alloc(tfm2, GFP_KERNEL); in aes_siv_encrypt()139 crypto_free_skcipher(tfm2); in aes_siv_encrypt()150 struct crypto_skcipher *tfm2; in aes_siv_decrypt() local175 tfm2 = crypto_alloc_skcipher("ctr(aes)", 0, CRYPTO_ALG_ASYNC); in aes_siv_decrypt()176 if (IS_ERR(tfm2)) in aes_siv_decrypt()[all …]
625 struct arc4_ctx *tfm2 = &tkey->tx_ctx_arc4; in lib80211_tkip_set_key() local633 tkey->tx_ctx_arc4 = *tfm2; in lib80211_tkip_set_key()