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

/linux-4.1.27/net/bluetooth/
H A Dsmp.c84 struct crypto_blkcipher *tfm_aes; member in struct:smp_dev
123 struct crypto_blkcipher *tfm_aes; member in struct:smp_chan
406 static int smp_c1(struct crypto_blkcipher *tfm_aes, const u8 k[16], smp_c1() argument
430 err = smp_e(tfm_aes, k, res); smp_c1()
440 err = smp_e(tfm_aes, k, res); smp_c1()
447 static int smp_s1(struct crypto_blkcipher *tfm_aes, const u8 k[16], smp_s1() argument
456 err = smp_e(tfm_aes, k, _r); smp_s1()
505 err = smp_ah(smp->tfm_aes, irk, &bdaddr->b[3], hash); smp_irk_matches()
528 err = smp_ah(smp->tfm_aes, irk, &rpa->b[3], rpa->b); smp_generate_rpa()
750 crypto_free_blkcipher(smp->tfm_aes); smp_chan_destroy()
939 ret = smp_c1(smp->tfm_aes, smp->tk, smp->prnd, smp->preq, smp->prsp, smp_confirm()
965 if (IS_ERR_OR_NULL(smp->tfm_aes)) smp_random()
970 ret = smp_c1(smp->tfm_aes, smp->tk, smp->rrnd, smp->preq, smp->prsp, smp_random()
986 smp_s1(smp->tfm_aes, smp->tk, smp->rrnd, smp->prnd, stk); smp_random()
1005 smp_s1(smp->tfm_aes, smp->tk, smp->prnd, smp->rrnd, stk); smp_random()
1368 smp->tfm_aes = crypto_alloc_blkcipher("ecb(aes)", 0, CRYPTO_ALG_ASYNC); smp_chan_create()
1369 if (IS_ERR(smp->tfm_aes)) { smp_chan_create()
1378 crypto_free_blkcipher(smp->tfm_aes); smp_chan_create()
3098 struct crypto_blkcipher *tfm_aes; smp_add_cid() local
3110 tfm_aes = crypto_alloc_blkcipher("ecb(aes)", 0, CRYPTO_ALG_ASYNC); smp_add_cid()
3111 if (IS_ERR(tfm_aes)) { smp_add_cid()
3114 return ERR_CAST(tfm_aes); smp_add_cid()
3120 crypto_free_blkcipher(tfm_aes); smp_add_cid()
3125 smp->tfm_aes = tfm_aes; smp_add_cid()
3132 crypto_free_blkcipher(smp->tfm_aes); smp_add_cid()
3179 if (smp->tfm_aes) smp_del_chan()
3180 crypto_free_blkcipher(smp->tfm_aes); smp_del_chan()
3325 static int __init test_ah(struct crypto_blkcipher *tfm_aes) test_ah() argument
3335 err = smp_ah(tfm_aes, irk, r, res); test_ah()
3345 static int __init test_c1(struct crypto_blkcipher *tfm_aes) test_c1() argument
3365 err = smp_c1(tfm_aes, k, r, preq, pres, _iat, &ia, _rat, &ra, res); test_c1()
3375 static int __init test_s1(struct crypto_blkcipher *tfm_aes) test_s1() argument
3390 err = smp_s1(tfm_aes, k, r1, r2, res); test_s1()
3571 static int __init run_selftests(struct crypto_blkcipher *tfm_aes, run_selftests() argument
3580 err = test_ah(tfm_aes); run_selftests()
3586 err = test_c1(tfm_aes); run_selftests()
3592 err = test_s1(tfm_aes); run_selftests()
3649 struct crypto_blkcipher *tfm_aes; bt_selftest_smp() local
3653 tfm_aes = crypto_alloc_blkcipher("ecb(aes)", 0, CRYPTO_ALG_ASYNC); bt_selftest_smp()
3654 if (IS_ERR(tfm_aes)) { bt_selftest_smp()
3656 return PTR_ERR(tfm_aes); bt_selftest_smp()
3662 crypto_free_blkcipher(tfm_aes); bt_selftest_smp()
3666 err = run_selftests(tfm_aes, tfm_cmac); bt_selftest_smp()
3669 crypto_free_blkcipher(tfm_aes); bt_selftest_smp()
/linux-4.1.27/drivers/usb/wusbcore/
H A Dcrypto.c146 * @tfm_aes: AES cipher handle (initialized)
199 struct crypto_cipher *tfm_aes, void *mic, wusb_ccm_mac()
282 crypto_cipher_encrypt_one(tfm_aes, (void *)&ax, (void *)&ax); wusb_ccm_mac()
305 struct crypto_cipher *tfm_aes; wusb_prf() local
321 tfm_aes = crypto_alloc_cipher("aes", 0, CRYPTO_ALG_ASYNC); wusb_prf()
322 if (IS_ERR(tfm_aes)) { wusb_prf()
323 result = PTR_ERR(tfm_aes); wusb_prf()
327 result = crypto_cipher_setkey(tfm_aes, key, 16); wusb_prf()
336 result = wusb_ccm_mac(tfm_cbc, tfm_aes, out + bytes, wusb_prf()
345 crypto_free_cipher(tfm_aes); wusb_prf()
198 wusb_ccm_mac(struct crypto_blkcipher *tfm_cbc, struct crypto_cipher *tfm_aes, void *mic, const struct aes_ccm_nonce *n, const struct aes_ccm_label *a, const void *b, size_t blen) wusb_ccm_mac() argument

Completed in 102 milliseconds