Lines Matching refs:tfm_cbc
198 static int wusb_ccm_mac(struct crypto_blkcipher *tfm_cbc, in wusb_ccm_mac() argument
235 iv = crypto_blkcipher_crt(tfm_cbc)->iv; in wusb_ccm_mac()
236 ivsize = crypto_blkcipher_ivsize(tfm_cbc); in wusb_ccm_mac()
262 desc.tfm = tfm_cbc; in wusb_ccm_mac()
304 struct crypto_blkcipher *tfm_cbc; in wusb_prf() local
309 tfm_cbc = crypto_alloc_blkcipher("cbc(aes)", 0, CRYPTO_ALG_ASYNC); in wusb_prf()
310 if (IS_ERR(tfm_cbc)) { in wusb_prf()
311 result = PTR_ERR(tfm_cbc); in wusb_prf()
315 result = crypto_blkcipher_setkey(tfm_cbc, key, 16); in wusb_prf()
336 result = wusb_ccm_mac(tfm_cbc, tfm_aes, out + bytes, in wusb_prf()
348 crypto_free_blkcipher(tfm_cbc); in wusb_prf()