Lines Matching refs:tfm_ecdh

92 	struct crypto_kpp	*tfm_ecdh;  member
130 struct crypto_kpp *tfm_ecdh; member
550 err = set_ecdh_privkey(smp->tfm_ecdh, debug_sk); in smp_generate_oob()
558 err = generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk); in smp_generate_oob()
760 crypto_free_kpp(smp->tfm_ecdh); in smp_chan_destroy()
1393 smp->tfm_ecdh = crypto_alloc_kpp("ecdh-nist-p256", 0, 0); in smp_chan_create()
1394 if (IS_ERR(smp->tfm_ecdh)) { in smp_chan_create()
1895 if (set_ecdh_privkey(smp->tfm_ecdh, debug_sk)) in sc_send_public_key()
1902 if (generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk)) in sc_send_public_key()
2734 struct crypto_kpp *tfm_ecdh; in smp_cmd_public_key() local
2788 tfm_ecdh = smp_dev->tfm_ecdh; in smp_cmd_public_key()
2790 tfm_ecdh = smp->tfm_ecdh; in smp_cmd_public_key()
2793 if (compute_ecdh_secret(tfm_ecdh, smp->remote_pk, smp->dhkey)) in smp_cmd_public_key()
3283 struct crypto_kpp *tfm_ecdh; in smp_add_cid() local
3301 tfm_ecdh = crypto_alloc_kpp("ecdh-nist-p256", 0, 0); in smp_add_cid()
3302 if (IS_ERR(tfm_ecdh)) { in smp_add_cid()
3306 return ERR_CAST(tfm_ecdh); in smp_add_cid()
3311 smp->tfm_ecdh = tfm_ecdh; in smp_add_cid()
3318 crypto_free_kpp(smp->tfm_ecdh); in smp_add_cid()
3365 crypto_free_kpp(smp->tfm_ecdh); in smp_del_chan()
3467 static int __init test_debug_key(struct crypto_kpp *tfm_ecdh) in test_debug_key() argument
3472 err = set_ecdh_privkey(tfm_ecdh, debug_sk); in test_debug_key()
3476 err = generate_ecdh_public_key(tfm_ecdh, pk); in test_debug_key()
3733 struct crypto_kpp *tfm_ecdh) in run_selftests() argument
3741 err = test_debug_key(tfm_ecdh); in run_selftests()
3817 struct crypto_kpp *tfm_ecdh; in bt_selftest_smp() local
3826 tfm_ecdh = crypto_alloc_kpp("ecdh-nist-p256", 0, 0); in bt_selftest_smp()
3827 if (IS_ERR(tfm_ecdh)) { in bt_selftest_smp()
3830 return PTR_ERR(tfm_ecdh); in bt_selftest_smp()
3833 err = run_selftests(tfm_cmac, tfm_ecdh); in bt_selftest_smp()
3836 crypto_free_kpp(tfm_ecdh); in bt_selftest_smp()