Lines Matching refs:tfm_ecdh

93 	struct crypto_kpp	*tfm_ecdh;  member
131 struct crypto_kpp *tfm_ecdh; member
551 err = set_ecdh_privkey(smp->tfm_ecdh, debug_sk); in smp_generate_oob()
559 err = generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk); in smp_generate_oob()
761 crypto_free_kpp(smp->tfm_ecdh); in smp_chan_destroy()
1390 smp->tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0); in smp_chan_create()
1391 if (IS_ERR(smp->tfm_ecdh)) { in smp_chan_create()
1892 if (set_ecdh_privkey(smp->tfm_ecdh, debug_sk)) in sc_send_public_key()
1899 if (generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk)) in sc_send_public_key()
2727 struct crypto_kpp *tfm_ecdh; in smp_cmd_public_key() local
2772 tfm_ecdh = smp_dev->tfm_ecdh; in smp_cmd_public_key()
2774 tfm_ecdh = smp->tfm_ecdh; in smp_cmd_public_key()
2777 if (compute_ecdh_secret(tfm_ecdh, smp->remote_pk, smp->dhkey)) in smp_cmd_public_key()
3267 struct crypto_kpp *tfm_ecdh; in smp_add_cid() local
3285 tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0); in smp_add_cid()
3286 if (IS_ERR(tfm_ecdh)) { in smp_add_cid()
3290 return ERR_CAST(tfm_ecdh); in smp_add_cid()
3295 smp->tfm_ecdh = tfm_ecdh; in smp_add_cid()
3302 crypto_free_kpp(smp->tfm_ecdh); in smp_add_cid()
3349 crypto_free_kpp(smp->tfm_ecdh); in smp_del_chan()
3491 static int __init test_debug_key(struct crypto_kpp *tfm_ecdh) in test_debug_key() argument
3496 err = set_ecdh_privkey(tfm_ecdh, debug_sk); in test_debug_key()
3500 err = generate_ecdh_public_key(tfm_ecdh, pk); in test_debug_key()
3757 struct crypto_kpp *tfm_ecdh) in run_selftests() argument
3765 err = test_debug_key(tfm_ecdh); in run_selftests()
3841 struct crypto_kpp *tfm_ecdh; in bt_selftest_smp() local
3850 tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0); in bt_selftest_smp()
3851 if (IS_ERR(tfm_ecdh)) { in bt_selftest_smp()
3854 return PTR_ERR(tfm_ecdh); in bt_selftest_smp()
3857 err = run_selftests(tfm_cmac, tfm_ecdh); in bt_selftest_smp()
3860 crypto_free_kpp(tfm_ecdh); in bt_selftest_smp()