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
2781 tfm_ecdh = smp_dev->tfm_ecdh; in smp_cmd_public_key()
2783 tfm_ecdh = smp->tfm_ecdh; in smp_cmd_public_key()
2786 if (compute_ecdh_secret(tfm_ecdh, smp->remote_pk, smp->dhkey)) in smp_cmd_public_key()
3276 struct crypto_kpp *tfm_ecdh; in smp_add_cid() local
3294 tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0); in smp_add_cid()
3295 if (IS_ERR(tfm_ecdh)) { in smp_add_cid()
3299 return ERR_CAST(tfm_ecdh); in smp_add_cid()
3304 smp->tfm_ecdh = tfm_ecdh; in smp_add_cid()
3311 crypto_free_kpp(smp->tfm_ecdh); in smp_add_cid()
3358 crypto_free_kpp(smp->tfm_ecdh); in smp_del_chan()
3500 static int __init test_debug_key(struct crypto_kpp *tfm_ecdh) in test_debug_key() argument
3505 err = set_ecdh_privkey(tfm_ecdh, debug_sk); in test_debug_key()
3509 err = generate_ecdh_public_key(tfm_ecdh, pk); in test_debug_key()
3766 struct crypto_kpp *tfm_ecdh) in run_selftests() argument
3774 err = test_debug_key(tfm_ecdh); in run_selftests()
3850 struct crypto_kpp *tfm_ecdh; in bt_selftest_smp() local
3859 tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0); in bt_selftest_smp()
3860 if (IS_ERR(tfm_ecdh)) { in bt_selftest_smp()
3863 return PTR_ERR(tfm_ecdh); in bt_selftest_smp()
3866 err = run_selftests(tfm_cmac, tfm_ecdh); in bt_selftest_smp()
3869 crypto_free_kpp(tfm_ecdh); in bt_selftest_smp()