Lines Matching defs:tfm_ecdh
94 struct crypto_kpp *tfm_ecdh;
132 struct crypto_kpp *tfm_ecdh;
552 err = set_ecdh_privkey(smp->tfm_ecdh, debug_sk);
560 err = generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk);
762 crypto_free_kpp(smp->tfm_ecdh);
1407 smp->tfm_ecdh = crypto_alloc_kpp("ecdh-nist-p256", 0, 0);
1408 if (IS_ERR(smp->tfm_ecdh)) {
1909 if (set_ecdh_privkey(smp->tfm_ecdh, debug_sk))
1916 if (generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk))
2748 struct crypto_kpp *tfm_ecdh;
2802 tfm_ecdh = smp_dev->tfm_ecdh;
2804 tfm_ecdh = smp->tfm_ecdh;
2807 if (compute_ecdh_secret(tfm_ecdh, smp->remote_pk, smp->dhkey))
3297 struct crypto_kpp *tfm_ecdh;
3315 tfm_ecdh = crypto_alloc_kpp("ecdh-nist-p256", 0, 0);
3316 if (IS_ERR(tfm_ecdh)) {
3320 return ERR_CAST(tfm_ecdh);
3325 smp->tfm_ecdh = tfm_ecdh;
3332 crypto_free_kpp(smp->tfm_ecdh);
3379 crypto_free_kpp(smp->tfm_ecdh);
3481 static int __init test_debug_key(struct crypto_kpp *tfm_ecdh)
3486 err = set_ecdh_privkey(tfm_ecdh, debug_sk);
3490 err = generate_ecdh_public_key(tfm_ecdh, pk);
3747 struct crypto_kpp *tfm_ecdh)
3755 err = test_debug_key(tfm_ecdh);
3831 struct crypto_kpp *tfm_ecdh;
3840 tfm_ecdh = crypto_alloc_kpp("ecdh-nist-p256", 0, 0);
3841 if (IS_ERR(tfm_ecdh)) {
3844 return PTR_ERR(tfm_ecdh);
3847 err = run_selftests(tfm_cmac, tfm_ecdh);
3850 crypto_free_kpp(tfm_ecdh);