Lines Matching refs:tfm_aes

84 	struct crypto_blkcipher	*tfm_aes;  member
123 struct crypto_blkcipher *tfm_aes; member
406 static int smp_c1(struct crypto_blkcipher *tfm_aes, const u8 k[16], in smp_c1() argument
430 err = smp_e(tfm_aes, k, res); in smp_c1()
440 err = smp_e(tfm_aes, k, res); in smp_c1()
447 static int smp_s1(struct crypto_blkcipher *tfm_aes, const u8 k[16], in smp_s1() argument
456 err = smp_e(tfm_aes, k, _r); in smp_s1()
505 err = smp_ah(smp->tfm_aes, irk, &bdaddr->b[3], hash); in smp_irk_matches()
528 err = smp_ah(smp->tfm_aes, irk, &rpa->b[3], rpa->b); in smp_generate_rpa()
750 crypto_free_blkcipher(smp->tfm_aes); in smp_chan_destroy()
939 ret = smp_c1(smp->tfm_aes, smp->tk, smp->prnd, smp->preq, smp->prsp, in smp_confirm()
965 if (IS_ERR_OR_NULL(smp->tfm_aes)) in smp_random()
970 ret = smp_c1(smp->tfm_aes, smp->tk, smp->rrnd, smp->preq, smp->prsp, in smp_random()
986 smp_s1(smp->tfm_aes, smp->tk, smp->rrnd, smp->prnd, stk); in smp_random()
1005 smp_s1(smp->tfm_aes, smp->tk, smp->prnd, smp->rrnd, stk); in smp_random()
1368 smp->tfm_aes = crypto_alloc_blkcipher("ecb(aes)", 0, CRYPTO_ALG_ASYNC); in smp_chan_create()
1369 if (IS_ERR(smp->tfm_aes)) { in smp_chan_create()
1378 crypto_free_blkcipher(smp->tfm_aes); in smp_chan_create()
3098 struct crypto_blkcipher *tfm_aes; in smp_add_cid() local
3110 tfm_aes = crypto_alloc_blkcipher("ecb(aes)", 0, CRYPTO_ALG_ASYNC); in smp_add_cid()
3111 if (IS_ERR(tfm_aes)) { in smp_add_cid()
3114 return ERR_CAST(tfm_aes); in smp_add_cid()
3120 crypto_free_blkcipher(tfm_aes); in smp_add_cid()
3125 smp->tfm_aes = tfm_aes; in smp_add_cid()
3132 crypto_free_blkcipher(smp->tfm_aes); in smp_add_cid()
3179 if (smp->tfm_aes) in smp_del_chan()
3180 crypto_free_blkcipher(smp->tfm_aes); in smp_del_chan()
3325 static int __init test_ah(struct crypto_blkcipher *tfm_aes) in test_ah() argument
3335 err = smp_ah(tfm_aes, irk, r, res); in test_ah()
3345 static int __init test_c1(struct crypto_blkcipher *tfm_aes) in test_c1() argument
3365 err = smp_c1(tfm_aes, k, r, preq, pres, _iat, &ia, _rat, &ra, res); in test_c1()
3375 static int __init test_s1(struct crypto_blkcipher *tfm_aes) in test_s1() argument
3390 err = smp_s1(tfm_aes, k, r1, r2, res); in test_s1()
3571 static int __init run_selftests(struct crypto_blkcipher *tfm_aes, in run_selftests() argument
3580 err = test_ah(tfm_aes); in run_selftests()
3586 err = test_c1(tfm_aes); in run_selftests()
3592 err = test_s1(tfm_aes); in run_selftests()
3649 struct crypto_blkcipher *tfm_aes; in bt_selftest_smp() local
3653 tfm_aes = crypto_alloc_blkcipher("ecb(aes)", 0, CRYPTO_ALG_ASYNC); in bt_selftest_smp()
3654 if (IS_ERR(tfm_aes)) { in bt_selftest_smp()
3656 return PTR_ERR(tfm_aes); in bt_selftest_smp()
3662 crypto_free_blkcipher(tfm_aes); in bt_selftest_smp()
3666 err = run_selftests(tfm_aes, tfm_cmac); in bt_selftest_smp()
3669 crypto_free_blkcipher(tfm_aes); in bt_selftest_smp()