Lines Matching refs:tfm
19 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_cipher_need_fallback() local
20 unsigned int bs = crypto_skcipher_blocksize(tfm); in rk_cipher_need_fallback()
57 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in rk_cipher_fallback() local
58 struct rk_cipher_ctx *op = crypto_skcipher_ctx(tfm); in rk_cipher_fallback()
88 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in rk_aes_setkey() local
89 struct rk_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in rk_aes_setkey()
134 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_ecb_encrypt() local
135 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_aes_ecb_encrypt()
145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_ecb_decrypt() local
146 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_aes_ecb_decrypt()
156 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_cbc_encrypt() local
157 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_aes_cbc_encrypt()
167 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_cbc_decrypt() local
168 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_aes_cbc_decrypt()
178 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des_ecb_encrypt() local
179 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des_ecb_encrypt()
189 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des_ecb_decrypt() local
190 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des_ecb_decrypt()
200 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des_cbc_encrypt() local
201 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des_cbc_encrypt()
211 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des_cbc_decrypt() local
212 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des_cbc_decrypt()
222 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des3_ede_ecb_encrypt() local
223 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des3_ede_ecb_encrypt()
233 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des3_ede_ecb_decrypt() local
234 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des3_ede_ecb_decrypt()
244 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des3_ede_cbc_encrypt() local
245 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des3_ede_cbc_encrypt()
255 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des3_ede_cbc_decrypt() local
256 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des3_ede_cbc_decrypt()
268 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in rk_ablk_hw_init() local
273 block = crypto_tfm_alg_blocksize(tfm); in rk_ablk_hw_init()
315 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in rk_cipher_run() local
316 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_cipher_run()
320 int ivsize = crypto_skcipher_ivsize(tfm); in rk_cipher_run()
328 ivsize = crypto_skcipher_ivsize(tfm); in rk_cipher_run()
329 if (areq->iv && crypto_skcipher_ivsize(tfm) > 0) { in rk_cipher_run()
436 static int rk_ablk_init_tfm(struct crypto_skcipher *tfm) in rk_ablk_init_tfm() argument
438 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_ablk_init_tfm()
439 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in rk_ablk_init_tfm()
440 const char *name = crypto_tfm_alg_name(&tfm->base); in rk_ablk_init_tfm()
454 tfm->reqsize = sizeof(struct rk_cipher_rctx) + in rk_ablk_init_tfm()
462 static void rk_ablk_exit_tfm(struct crypto_skcipher *tfm) in rk_ablk_exit_tfm() argument
464 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_ablk_exit_tfm()