Lines Matching refs:req
38 static int sm4_ecb_do_crypt(struct skcipher_request *req, const u32 *rkey)
44 err = skcipher_walk_virt(&walk, req, false);
66 static int sm4_ecb_encrypt(struct skcipher_request *req)
68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
71 return sm4_ecb_do_crypt(req, ctx->rkey_enc);
74 static int sm4_ecb_decrypt(struct skcipher_request *req)
76 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
79 return sm4_ecb_do_crypt(req, ctx->rkey_dec);
82 static int sm4_cbc_encrypt(struct skcipher_request *req)
84 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
90 err = skcipher_walk_virt(&walk, req, false);
114 static int sm4_cbc_decrypt(struct skcipher_request *req)
116 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
122 err = skcipher_walk_virt(&walk, req, false);
145 static int sm4_cfb_encrypt(struct skcipher_request *req)
147 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
153 err = skcipher_walk_virt(&walk, req, false);
185 static int sm4_cfb_decrypt(struct skcipher_request *req)
187 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
193 err = skcipher_walk_virt(&walk, req, false);
229 static int sm4_ctr_crypt(struct skcipher_request *req)
231 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
237 err = skcipher_walk_virt(&walk, req, false);