Lines Matching refs:tfm
30 static int sm4_setkey(struct crypto_skcipher *tfm, const u8 *key, in sm4_setkey() argument
33 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_setkey()
68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_encrypt() local
69 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_encrypt()
76 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_decrypt() local
77 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_decrypt()
84 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_encrypt() local
85 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_encrypt()
116 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_decrypt() local
117 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_decrypt()
147 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cfb_encrypt() local
148 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cfb_encrypt()
187 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cfb_decrypt() local
188 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cfb_decrypt()
231 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ctr_crypt() local
232 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ctr_crypt()