Lines Matching refs:tfm
21 static inline struct ecdh_ctx *ecdh_get_ctx(struct crypto_kpp *tfm) in ecdh_get_ctx() argument
23 return kpp_tfm_ctx(tfm); in ecdh_get_ctx()
26 static int ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in ecdh_set_secret() argument
29 struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); in ecdh_set_secret()
54 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in ecdh_compute_value() local
55 struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); in ecdh_compute_value()
120 static unsigned int ecdh_max_size(struct crypto_kpp *tfm) in ecdh_max_size() argument
122 struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); in ecdh_max_size()
128 static int ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p192_init_tfm() argument
130 struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); in ecdh_nist_p192_init_tfm()
153 static int ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p256_init_tfm() argument
155 struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); in ecdh_nist_p256_init_tfm()
178 static int ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p384_init_tfm() argument
180 struct ecdh_ctx *ctx = ecdh_get_ctx(tfm); in ecdh_nist_p384_init_tfm()