Lines Matching refs:tfm

25 	struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);  in rk_cipher_need_fallback()  local
26 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in rk_cipher_need_fallback()
30 unsigned int bs = crypto_skcipher_blocksize(tfm); in rk_cipher_need_fallback()
70 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in rk_cipher_fallback() local
71 struct rk_cipher_ctx *op = crypto_skcipher_ctx(tfm); in rk_cipher_fallback()
73 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in rk_cipher_fallback()
111 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in rk_aes_setkey() local
112 struct rk_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in rk_aes_setkey()
255 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in rk_cipher_hw_init() local
260 block = crypto_tfm_alg_blocksize(tfm); in rk_cipher_hw_init()
302 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in rk_cipher_run() local
306 int ivsize = crypto_skcipher_ivsize(tfm); in rk_cipher_run()
313 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in rk_cipher_run()
324 ivsize = crypto_skcipher_ivsize(tfm); in rk_cipher_run()
325 if (areq->iv && crypto_skcipher_ivsize(tfm) > 0) { in rk_cipher_run()
434 static int rk_cipher_tfm_init(struct crypto_skcipher *tfm) in rk_cipher_tfm_init() argument
436 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_cipher_tfm_init()
437 const char *name = crypto_tfm_alg_name(&tfm->base); in rk_cipher_tfm_init()
438 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in rk_cipher_tfm_init()
448 tfm->reqsize = sizeof(struct rk_cipher_rctx) + in rk_cipher_tfm_init()
454 static void rk_cipher_tfm_exit(struct crypto_skcipher *tfm) in rk_cipher_tfm_exit() argument
456 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_cipher_tfm_exit()