Searched refs:tfm_cbc (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/usb/wusbcore/
H A Dcrypto.c144 * @tfm_cbc: CBC(AES) blkcipher handle (initialized)
198 static int wusb_ccm_mac(struct crypto_blkcipher *tfm_cbc, wusb_ccm_mac() argument
235 iv = crypto_blkcipher_crt(tfm_cbc)->iv; wusb_ccm_mac()
236 ivsize = crypto_blkcipher_ivsize(tfm_cbc); wusb_ccm_mac()
262 desc.tfm = tfm_cbc; wusb_ccm_mac()
304 struct crypto_blkcipher *tfm_cbc; wusb_prf() local
309 tfm_cbc = crypto_alloc_blkcipher("cbc(aes)", 0, CRYPTO_ALG_ASYNC); wusb_prf()
310 if (IS_ERR(tfm_cbc)) { wusb_prf()
311 result = PTR_ERR(tfm_cbc); wusb_prf()
315 result = crypto_blkcipher_setkey(tfm_cbc, key, 16); wusb_prf()
336 result = wusb_ccm_mac(tfm_cbc, tfm_aes, out + bytes, wusb_prf()
348 crypto_free_blkcipher(tfm_cbc); wusb_prf()

Completed in 58 milliseconds