Lines Matching refs:alg
23 static unsigned int crypto_skcipher_extsize(struct crypto_alg *alg) in crypto_skcipher_extsize() argument
25 if (alg->cra_type == &crypto_blkcipher_type) in crypto_skcipher_extsize()
28 BUG_ON(alg->cra_type != &crypto_ablkcipher_type && in crypto_skcipher_extsize()
29 alg->cra_type != &crypto_givcipher_type); in crypto_skcipher_extsize()
73 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; in skcipher_encrypt_blkcipher() local
75 return skcipher_crypt_blkcipher(req, alg->encrypt); in skcipher_encrypt_blkcipher()
82 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; in skcipher_decrypt_blkcipher() local
84 return skcipher_crypt_blkcipher(req, alg->decrypt); in skcipher_decrypt_blkcipher()
165 struct ablkcipher_alg *alg = &tfm->__crt_alg->cra_ablkcipher; in skcipher_encrypt_ablkcipher() local
167 return skcipher_crypt_ablkcipher(req, alg->encrypt); in skcipher_encrypt_ablkcipher()
174 struct ablkcipher_alg *alg = &tfm->__crt_alg->cra_ablkcipher; in skcipher_decrypt_ablkcipher() local
176 return skcipher_crypt_ablkcipher(req, alg->decrypt); in skcipher_decrypt_ablkcipher()