Lines Matching defs:tfm_ecdh
93 struct crypto_kpp *tfm_ecdh;
131 struct crypto_kpp *tfm_ecdh;
551 err = set_ecdh_privkey(smp->tfm_ecdh, debug_sk);
559 err = generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk);
761 crypto_free_kpp(smp->tfm_ecdh);
1401 smp->tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
1402 if (IS_ERR(smp->tfm_ecdh)) {
1903 if (set_ecdh_privkey(smp->tfm_ecdh, debug_sk))
1910 if (generate_ecdh_keys(smp->tfm_ecdh, smp->local_pk))
2742 struct crypto_kpp *tfm_ecdh;
2796 tfm_ecdh = smp_dev->tfm_ecdh;
2798 tfm_ecdh = smp->tfm_ecdh;
2801 if (compute_ecdh_secret(tfm_ecdh, smp->remote_pk, smp->dhkey))
3291 struct crypto_kpp *tfm_ecdh;
3309 tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
3310 if (IS_ERR(tfm_ecdh)) {
3314 return ERR_CAST(tfm_ecdh);
3319 smp->tfm_ecdh = tfm_ecdh;
3326 crypto_free_kpp(smp->tfm_ecdh);
3373 crypto_free_kpp(smp->tfm_ecdh);
3515 static int __init test_debug_key(struct crypto_kpp *tfm_ecdh)
3520 err = set_ecdh_privkey(tfm_ecdh, debug_sk);
3524 err = generate_ecdh_public_key(tfm_ecdh, pk);
3781 struct crypto_kpp *tfm_ecdh)
3789 err = test_debug_key(tfm_ecdh);
3865 struct crypto_kpp *tfm_ecdh;
3874 tfm_ecdh = crypto_alloc_kpp("ecdh", 0, 0);
3875 if (IS_ERR(tfm_ecdh)) {
3878 return PTR_ERR(tfm_ecdh);
3881 err = run_selftests(tfm_cmac, tfm_ecdh);
3884 crypto_free_kpp(tfm_ecdh);