| /linux/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_skcipher.c | 51 static void free_src_sglist(struct skcipher_request *skreq) in free_src_sglist() argument 53 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in free_src_sglist() 58 static void free_dst_sglist(struct skcipher_request *skreq) in free_dst_sglist() argument 60 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in free_dst_sglist() 67 struct skcipher_request *skreq = arg; in nitrox_skcipher_callback() local 69 free_src_sglist(skreq); in nitrox_skcipher_callback() 70 free_dst_sglist(skreq); in nitrox_skcipher_callback() 76 skcipher_request_complete(skreq, err); in nitrox_skcipher_callback() 81 struct skcipher_request *skreq = arg; in nitrox_cbc_cipher_callback() local 82 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in nitrox_cbc_cipher_callback() [all …]
|
| /linux/drivers/crypto/hisilicon/sec/ |
| H A D | sec_algs.c | 424 struct skcipher_request *skreq = container_of(req_base, in sec_skcipher_alg_callback() local 427 struct sec_request *sec_req = skcipher_request_ctx(skreq); in sec_skcipher_alg_callback() 431 struct crypto_skcipher *atfm = crypto_skcipher_reqtfm(skreq); in sec_skcipher_alg_callback() 461 skreq->iv, in sec_skcipher_alg_callback() 468 skreq->iv, in sec_skcipher_alg_callback() 477 crypto_inc(skreq->iv, 16); in sec_skcipher_alg_callback() 532 dma_unmap_sg(dev, skreq->src, sec_req->len_in, in sec_skcipher_alg_callback() 534 if (skreq->src != skreq->dst) in sec_skcipher_alg_callback() 535 dma_unmap_sg(dev, skreq->dst, sec_req->len_out, in sec_skcipher_alg_callback() 537 skcipher_request_complete(skreq, sec_req->err); in sec_skcipher_alg_callback() [all …]
|
| /linux/drivers/crypto/marvell/cesa/ |
| H A D | cipher.c | 148 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_process() local 149 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_process() 153 return mv_cesa_skcipher_std_process(skreq, status); in mv_cesa_skcipher_process() 160 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_step() local 161 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_step() 166 mv_cesa_skcipher_std_step(skreq); in mv_cesa_skcipher_step() 191 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_prepare() local 192 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_prepare() 197 mv_cesa_skcipher_dma_prepare(skreq); in mv_cesa_skcipher_prepare() 199 mv_cesa_skcipher_std_prepare(skreq); in mv_cesa_skcipher_prepare() [all …]
|
| /linux/crypto/ |
| H A D | authenc.c | 196 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt() local 209 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_encrypt() 210 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_encrypt() 212 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_encrypt() 214 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_encrypt() 237 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_decrypt_tail() local 255 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_decrypt_tail() 256 skcipher_request_set_callback(skreq, flags, in crypto_authenc_decrypt_tail() 260 skcipher_request_set_crypt(skreq, src, dst, in crypto_authenc_decrypt_tail() 263 return crypto_skcipher_decrypt(skreq); in crypto_authenc_decrypt_tail()
|
| H A D | krb5enc.c | 146 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in krb5enc_dispatch_encrypt() local 156 skcipher_request_set_tfm(skreq, enc); in krb5enc_dispatch_encrypt() 157 skcipher_request_set_callback(skreq, aead_request_flags(req), in krb5enc_dispatch_encrypt() 159 skcipher_request_set_crypt(skreq, src, dst, req->cryptlen, req->iv); in krb5enc_dispatch_encrypt() 161 return crypto_skcipher_encrypt(skreq); in krb5enc_dispatch_encrypt() 313 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in krb5enc_dispatch_decrypt() local 324 skcipher_request_set_tfm(skreq, ctx->enc); in krb5enc_dispatch_decrypt() 325 skcipher_request_set_callback(skreq, aead_request_flags(req), in krb5enc_dispatch_decrypt() 327 skcipher_request_set_crypt(skreq, src, dst, in krb5enc_dispatch_decrypt() 330 return crypto_skcipher_decrypt(skreq); in krb5enc_dispatch_decrypt()
|
| H A D | authencesn.c | 164 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_encrypt() local 185 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_esn_encrypt() 186 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_encrypt() 188 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_esn_encrypt() 190 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_encrypt() 204 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_decrypt_tail() local 235 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_esn_decrypt_tail() 236 skcipher_request_set_callback(skreq, flags, in crypto_authenc_esn_decrypt_tail() 238 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_esn_decrypt_tail() 240 return crypto_skcipher_decrypt(skreq); in crypto_authenc_esn_decrypt_tail()
|
| H A D | ccm.c | 50 struct skcipher_request skreq; member 287 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_encrypt() local 306 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_encrypt() 307 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_encrypt() 309 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt() 310 err = crypto_skcipher_encrypt(skreq); in crypto_ccm_encrypt() 346 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_decrypt() local 370 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_decrypt() 371 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_decrypt() 373 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt() [all …]
|
| H A D | gcm.c | 71 struct skcipher_request skreq; member 179 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_init_crypt() local 184 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_gcm_init_crypt() 185 skcipher_request_set_crypt(skreq, pctx->src, dst, in crypto_gcm_init_crypt() 448 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_encrypt() local 453 skcipher_request_set_callback(skreq, flags, gcm_encrypt_done, req); in crypto_gcm_encrypt() 455 return crypto_skcipher_encrypt(skreq) ?: in crypto_gcm_encrypt() 487 struct skcipher_request *skreq = &pctx->u.skreq; in gcm_dec_hash_continue() local 491 skcipher_request_set_callback(skreq, flags, gcm_decrypt_done, req); in gcm_dec_hash_continue() 492 return crypto_skcipher_decrypt(skreq) ?: crypto_gcm_verify(req); in gcm_dec_hash_continue()
|