Lines Matching defs:tfm
38 * @tfm: KPP tfm handle allocated with crypto_alloc_kpp().
44 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 public_key[64],
57 req = kpp_request_alloc(tfm, GFP_KERNEL);
95 * @tfm: KPP tfm handle allocated with crypto_alloc_kpp().
101 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32])
128 err = crypto_kpp_set_secret(tfm, buf, buf_len);
140 * @tfm: KPP tfm handle allocated with crypto_alloc_kpp().
145 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64])
157 req = kpp_request_alloc(tfm, GFP_KERNEL);
189 * @tfm: KPP tfm handle allocated with crypto_alloc_kpp().
194 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64])
198 err = set_ecdh_privkey(tfm, NULL);
202 return generate_ecdh_public_key(tfm, public_key);