Lines Matching refs:alg

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