Home
last modified time | relevance | path

Searched refs:skreq (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_skcipher.c51 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 Dsec_algs.c424 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/crypto/
H A Dauthenc.c196 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 Dauthencesn.c164 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
230 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_esn_decrypt_tail()
231 skcipher_request_set_callback(skreq, flags, in crypto_authenc_esn_decrypt_tail()
233 skcipher_request_set_crypt(skreq, dst, dst, cryptlen, req->iv); in crypto_authenc_esn_decrypt_tail()
235 return crypto_skcipher_decrypt(skreq); in crypto_authenc_esn_decrypt_tail()
H A Dgcm.c71 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()