Lines Matching refs:tfm

34 	struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher);  in rk_aes_setkey()  local
35 struct rk_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in rk_aes_setkey()
77 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_ecb_encrypt() local
78 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_aes_ecb_encrypt()
87 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_ecb_decrypt() local
88 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_aes_ecb_decrypt()
97 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_cbc_encrypt() local
98 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_aes_cbc_encrypt()
107 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_aes_cbc_decrypt() local
108 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_aes_cbc_decrypt()
117 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des_ecb_encrypt() local
118 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des_ecb_encrypt()
127 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des_ecb_decrypt() local
128 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des_ecb_decrypt()
137 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des_cbc_encrypt() local
138 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des_cbc_encrypt()
147 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des_cbc_decrypt() local
148 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des_cbc_decrypt()
157 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des3_ede_ecb_encrypt() local
158 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des3_ede_ecb_encrypt()
167 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des3_ede_ecb_decrypt() local
168 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des3_ede_ecb_decrypt()
177 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des3_ede_cbc_encrypt() local
178 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des3_ede_cbc_encrypt()
187 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_des3_ede_cbc_decrypt() local
188 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_des3_ede_cbc_decrypt()
201 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in rk_ablk_hw_init() local
205 block = crypto_tfm_alg_blocksize(tfm); in rk_ablk_hw_init()
248 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_set_data_start() local
249 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_set_data_start()
250 u32 ivsize = crypto_skcipher_ivsize(tfm); in rk_set_data_start()
296 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_iv_copyback() local
297 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_iv_copyback()
298 u32 ivsize = crypto_skcipher_ivsize(tfm); in rk_iv_copyback()
316 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_update_iv() local
317 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_update_iv()
318 u32 ivsize = crypto_skcipher_ivsize(tfm); in rk_update_iv()
377 static int rk_ablk_init_tfm(struct crypto_skcipher *tfm) in rk_ablk_init_tfm() argument
379 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_ablk_init_tfm()
380 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in rk_ablk_init_tfm()
386 ctx->dev->align_size = crypto_tfm_alg_alignmask(crypto_skcipher_tfm(tfm)) + 1; in rk_ablk_init_tfm()
395 static void rk_ablk_exit_tfm(struct crypto_skcipher *tfm) in rk_ablk_exit_tfm() argument
397 struct rk_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in rk_ablk_exit_tfm()