Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/usb/wusbcore/
Dcrypto.c192 static int wusb_ccm_mac(struct crypto_skcipher *tfm_cbc, in wusb_ccm_mac() argument
201 SKCIPHER_REQUEST_ON_STACK(req, tfm_cbc); in wusb_ccm_mac()
227 iv = kzalloc(crypto_skcipher_ivsize(tfm_cbc), GFP_KERNEL); in wusb_ccm_mac()
254 skcipher_request_set_tfm(req, tfm_cbc); in wusb_ccm_mac()
301 struct crypto_skcipher *tfm_cbc; in wusb_prf() local
307 tfm_cbc = crypto_alloc_skcipher("cbc(aes)", 0, CRYPTO_ALG_ASYNC); in wusb_prf()
308 if (IS_ERR(tfm_cbc)) { in wusb_prf()
309 result = PTR_ERR(tfm_cbc); in wusb_prf()
313 result = crypto_skcipher_setkey(tfm_cbc, key, 16); in wusb_prf()
339 result = wusb_ccm_mac(tfm_cbc, tfm_aes, scratch, out + bytes, in wusb_prf()
[all …]