Lines Matching refs:req
89 static int ecb_desall_crypt(struct skcipher_request *req, unsigned long fc)
91 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
97 ret = skcipher_walk_virt(&walk, req, false);
108 static int cbc_desall_crypt(struct skcipher_request *req, unsigned long fc)
110 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
120 ret = skcipher_walk_virt(&walk, req, false);
136 static int ecb_des_encrypt(struct skcipher_request *req)
138 return ecb_desall_crypt(req, CPACF_KM_DEA);
141 static int ecb_des_decrypt(struct skcipher_request *req)
143 return ecb_desall_crypt(req, CPACF_KM_DEA | CPACF_DECRYPT);
160 static int cbc_des_encrypt(struct skcipher_request *req)
162 return cbc_desall_crypt(req, CPACF_KMC_DEA);
165 static int cbc_des_decrypt(struct skcipher_request *req)
167 return cbc_desall_crypt(req, CPACF_KMC_DEA | CPACF_DECRYPT);
254 static int ecb_des3_encrypt(struct skcipher_request *req)
256 return ecb_desall_crypt(req, CPACF_KM_TDEA_192);
259 static int ecb_des3_decrypt(struct skcipher_request *req)
261 return ecb_desall_crypt(req, CPACF_KM_TDEA_192 | CPACF_DECRYPT);
278 static int cbc_des3_encrypt(struct skcipher_request *req)
280 return cbc_desall_crypt(req, CPACF_KMC_TDEA_192);
283 static int cbc_des3_decrypt(struct skcipher_request *req)
285 return cbc_desall_crypt(req, CPACF_KMC_TDEA_192 | CPACF_DECRYPT);
318 static int ctr_desall_crypt(struct skcipher_request *req, unsigned long fc)
320 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
329 ret = skcipher_walk_virt(&walk, req, false);
356 static int ctr_des_crypt(struct skcipher_request *req)
358 return ctr_desall_crypt(req, CPACF_KMCTR_DEA);
377 static int ctr_des3_crypt(struct skcipher_request *req)
379 return ctr_desall_crypt(req, CPACF_KMCTR_TDEA_192);