Lines Matching refs:tfm_ecdh

96 	struct crypto_kpp	*tfm_ecdh;  member
135 struct crypto_kpp *tfm_ecdh; member
570 err = set_ecdh_privkey(smp->tfm_ecdh, debug_sk); in smp_generate_oob()
578 err = generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk); in smp_generate_oob()
777 crypto_free_kpp(smp->tfm_ecdh); in smp_chan_destroy()
1408 smp->tfm_ecdh = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0); in smp_chan_create()
1409 if (IS_ERR(smp->tfm_ecdh)) { in smp_chan_create()
1912 if (set_ecdh_privkey(smp->tfm_ecdh, debug_sk)) in sc_send_public_key()
1919 if (generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk)) in sc_send_public_key()
2687 struct crypto_kpp *tfm_ecdh; in smp_cmd_public_key() local
2732 tfm_ecdh = smp_dev->tfm_ecdh; in smp_cmd_public_key()
2734 tfm_ecdh = smp->tfm_ecdh; in smp_cmd_public_key()
2737 if (compute_ecdh_secret(tfm_ecdh, smp->remote_pk, smp->dhkey)) in smp_cmd_public_key()
3228 struct crypto_kpp *tfm_ecdh; in smp_add_cid() local
3254 tfm_ecdh = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0); in smp_add_cid()
3255 if (IS_ERR(tfm_ecdh)) { in smp_add_cid()
3260 return ERR_CAST(tfm_ecdh); in smp_add_cid()
3266 smp->tfm_ecdh = tfm_ecdh; in smp_add_cid()
3276 crypto_free_kpp(smp->tfm_ecdh); in smp_add_cid()
3324 crypto_free_kpp(smp->tfm_ecdh); in smp_del_chan()
3559 static int __init test_debug_key(struct crypto_kpp *tfm_ecdh) in test_debug_key() argument
3564 err = set_ecdh_privkey(tfm_ecdh, debug_sk); in test_debug_key()
3568 err = generate_ecdh_public_key(tfm_ecdh, pk); in test_debug_key()
3826 struct crypto_kpp *tfm_ecdh) in run_selftests() argument
3834 err = test_debug_key(tfm_ecdh); in run_selftests()
3911 struct crypto_kpp *tfm_ecdh; in bt_selftest_smp() local
3927 tfm_ecdh = crypto_alloc_kpp("ecdh", CRYPTO_ALG_INTERNAL, 0); in bt_selftest_smp()
3928 if (IS_ERR(tfm_ecdh)) { in bt_selftest_smp()
3932 return PTR_ERR(tfm_ecdh); in bt_selftest_smp()
3935 err = run_selftests(tfm_aes, tfm_cmac, tfm_ecdh); in bt_selftest_smp()
3939 crypto_free_kpp(tfm_ecdh); in bt_selftest_smp()