Lines Matching refs:alg
167 static inline struct akcipher_alg *__crypto_akcipher_alg(struct crypto_alg *alg)
169 return container_of(alg, struct akcipher_alg, base);
300 struct akcipher_alg *alg = crypto_akcipher_alg(tfm);
302 return alg->max_size(tfm);
306 struct akcipher_alg *alg)
309 return &alg->stat;
315 static inline int crypto_akcipher_errstat(struct akcipher_alg *alg, int err)
321 atomic64_inc(&akcipher_get_stat(alg)->err_cnt);
339 struct akcipher_alg *alg = crypto_akcipher_alg(tfm);
342 struct crypto_istat_akcipher *istat = akcipher_get_stat(alg);
348 return crypto_akcipher_errstat(alg, alg->encrypt(req));
364 struct akcipher_alg *alg = crypto_akcipher_alg(tfm);
367 struct crypto_istat_akcipher *istat = akcipher_get_stat(alg);
373 return crypto_akcipher_errstat(alg, alg->decrypt(req));
425 struct akcipher_alg *alg = crypto_akcipher_alg(tfm);
428 atomic64_inc(&akcipher_get_stat(alg)->sign_cnt);
430 return crypto_akcipher_errstat(alg, alg->sign(req));
450 struct akcipher_alg *alg = crypto_akcipher_alg(tfm);
453 atomic64_inc(&akcipher_get_stat(alg)->verify_cnt);
455 return crypto_akcipher_errstat(alg, alg->verify(req));
475 struct akcipher_alg *alg = crypto_akcipher_alg(tfm);
477 return alg->set_pub_key(tfm, key, keylen);
497 struct akcipher_alg *alg = crypto_akcipher_alg(tfm);
499 return alg->set_priv_key(tfm, key, keylen);