Lines Matching refs:tfm
24 static int crypto_sig_init_tfm(struct crypto_tfm *tfm) in crypto_sig_init_tfm() argument
26 if (tfm->__crt_alg->cra_type != &crypto_sig_type) in crypto_sig_init_tfm()
27 return crypto_init_akcipher_ops_sig(tfm); in crypto_sig_init_tfm()
82 int crypto_sig_maxsize(struct crypto_sig *tfm) in crypto_sig_maxsize() argument
84 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_maxsize()
90 int crypto_sig_sign(struct crypto_sig *tfm, in crypto_sig_sign() argument
94 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_sign()
96 .tfm = *ctx, in crypto_sig_sign()
109 int crypto_sig_verify(struct crypto_sig *tfm, in crypto_sig_verify() argument
113 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_verify()
115 .tfm = *ctx, in crypto_sig_verify()
133 int crypto_sig_set_pubkey(struct crypto_sig *tfm, in crypto_sig_set_pubkey() argument
136 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_set_pubkey()
142 int crypto_sig_set_privkey(struct crypto_sig *tfm, in crypto_sig_set_privkey() argument
145 struct crypto_akcipher **ctx = crypto_sig_ctx(tfm); in crypto_sig_set_privkey()