Lines Matching defs:req
39 static int ecb_do_crypt(struct skcipher_request *req, const u32 *rkey)
45 err = skcipher_walk_virt(&walk, req, false);
73 int sm4_avx_ecb_encrypt(struct skcipher_request *req)
75 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
78 return ecb_do_crypt(req, ctx->rkey_enc);
82 int sm4_avx_ecb_decrypt(struct skcipher_request *req)
84 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
87 return ecb_do_crypt(req, ctx->rkey_dec);
91 int sm4_cbc_encrypt(struct skcipher_request *req)
93 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
99 err = skcipher_walk_virt(&walk, req, false);
124 int sm4_avx_cbc_decrypt(struct skcipher_request *req,
127 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
133 err = skcipher_walk_virt(&walk, req, false);
183 static int cbc_decrypt(struct skcipher_request *req)
185 return sm4_avx_cbc_decrypt(req, SM4_CRYPT8_BLOCK_SIZE,
189 int sm4_avx_ctr_crypt(struct skcipher_request *req,
192 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
198 err = skcipher_walk_virt(&walk, req, false);
257 static int ctr_crypt(struct skcipher_request *req)
259 return sm4_avx_ctr_crypt(req, SM4_CRYPT8_BLOCK_SIZE,