Searched refs:tfm_aes (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/drivers/usb/wusbcore/ |
D | crypto.c | 193 struct crypto_cipher *tfm_aes, in wusb_ccm_mac() argument 276 crypto_cipher_encrypt_one(tfm_aes, (void *)&scratch->ax, in wusb_ccm_mac() 302 struct crypto_cipher *tfm_aes; in wusb_prf() local 319 tfm_aes = crypto_alloc_cipher("aes", 0, CRYPTO_ALG_ASYNC); in wusb_prf() 320 if (IS_ERR(tfm_aes)) { in wusb_prf() 321 result = PTR_ERR(tfm_aes); in wusb_prf() 325 result = crypto_cipher_setkey(tfm_aes, key, 16); in wusb_prf() 339 result = wusb_ccm_mac(tfm_cbc, tfm_aes, scratch, out + bytes, in wusb_prf() 351 crypto_free_cipher(tfm_aes); in wusb_prf()
|
/Linux-v4.19/net/bluetooth/ |
D | smp.c | 94 struct crypto_cipher *tfm_aes; member 133 struct crypto_cipher *tfm_aes; member 418 static int smp_c1(struct crypto_cipher *tfm_aes, const u8 k[16], in smp_c1() argument 443 err = smp_e(tfm_aes, k, res); in smp_c1() 460 err = smp_e(tfm_aes, k, res); in smp_c1() 467 static int smp_s1(struct crypto_cipher *tfm_aes, const u8 k[16], in smp_s1() argument 476 err = smp_e(tfm_aes, k, _r); in smp_s1() 525 err = smp_ah(smp->tfm_aes, irk, &bdaddr->b[3], hash); in smp_irk_matches() 548 err = smp_ah(smp->tfm_aes, irk, &rpa->b[3], rpa->b); in smp_generate_rpa() 775 crypto_free_cipher(smp->tfm_aes); in smp_chan_destroy() [all …]
|