Lines Matching refs:tfm
83 static int chainiv_init_common(struct crypto_tfm *tfm, char iv[]) in chainiv_init_common() argument
85 struct crypto_ablkcipher *geniv = __crypto_ablkcipher_cast(tfm); in chainiv_init_common()
88 tfm->crt_ablkcipher.reqsize = sizeof(struct ablkcipher_request); in chainiv_init_common()
96 return err ?: skcipher_geniv_init(tfm); in chainiv_init_common()
99 static int chainiv_init(struct crypto_tfm *tfm) in chainiv_init() argument
101 struct crypto_ablkcipher *geniv = __crypto_ablkcipher_cast(tfm); in chainiv_init()
102 struct chainiv_ctx *ctx = crypto_tfm_ctx(tfm); in chainiv_init()
113 return chainiv_init_common(tfm, iv); in chainiv_init()
230 static int async_chainiv_init(struct crypto_tfm *tfm) in async_chainiv_init() argument
232 struct crypto_ablkcipher *geniv = __crypto_ablkcipher_cast(tfm); in async_chainiv_init()
233 struct async_chainiv_ctx *ctx = crypto_tfm_ctx(tfm); in async_chainiv_init()
248 return chainiv_init_common(tfm, iv); in async_chainiv_init()
251 static void async_chainiv_exit(struct crypto_tfm *tfm) in async_chainiv_exit() argument
253 struct async_chainiv_ctx *ctx = crypto_tfm_ctx(tfm); in async_chainiv_exit()
257 skcipher_geniv_exit(tfm); in async_chainiv_exit()