Home
last modified time | relevance | path

Searched refs:backup_iv (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.10/drivers/crypto/amlogic/
Damlogic-gxl-cipher.c101 void *backup_iv = NULL, *bkeyiv; in meson_cipher() local
139 backup_iv = kzalloc(ivsize, GFP_KERNEL); in meson_cipher()
140 if (!backup_iv) { in meson_cipher()
145 scatterwalk_map_and_copy(backup_iv, areq->src, offset, in meson_cipher()
247 memcpy(areq->iv, backup_iv, ivsize); in meson_cipher()
256 kfree_sensitive(backup_iv); in meson_cipher()
/Linux-v5.10/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-cipher.c105 void *backup_iv = NULL; in sun8i_ss_cipher() local
143 backup_iv = kzalloc(ivsize, GFP_KERNEL); in sun8i_ss_cipher()
144 if (!backup_iv) { in sun8i_ss_cipher()
149 scatterwalk_map_and_copy(backup_iv, areq->src, offset, in sun8i_ss_cipher()
250 memcpy(areq->iv, backup_iv, ivsize); in sun8i_ss_cipher()
251 kfree_sensitive(backup_iv); in sun8i_ss_cipher()
/Linux-v5.10/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-cipher.c160 rctx->backup_iv = kzalloc(ivsize, GFP_KERNEL); in sun8i_ce_cipher_prepare()
161 if (!rctx->backup_iv) { in sun8i_ce_cipher_prepare()
166 scatterwalk_map_and_copy(rctx->backup_iv, areq->src, in sun8i_ce_cipher_prepare()
256 memcpy(areq->iv, rctx->backup_iv, ivsize); in sun8i_ce_cipher_prepare()
257 kfree_sensitive(rctx->backup_iv); in sun8i_ce_cipher_prepare()
319 memcpy(areq->iv, rctx->backup_iv, ivsize); in sun8i_ce_cipher_unprepare()
320 kfree_sensitive(rctx->backup_iv); in sun8i_ce_cipher_unprepare()
Dsun8i-ce.h254 void *backup_iv; member
/Linux-v5.10/drivers/crypto/ccree/
Dcc_aead.c222 areq->iv = areq_ctx->backup_iv; in cc_aead_complete()
2028 areq_ctx->backup_iv = req->iv; in cc_aead_encrypt()
2033 req->iv = areq_ctx->backup_iv; in cc_aead_encrypt()
2052 areq_ctx->backup_iv = req->iv; in cc_rfc4309_ccm_encrypt()
2059 req->iv = areq_ctx->backup_iv; in cc_rfc4309_ccm_encrypt()
2072 areq_ctx->backup_iv = req->iv; in cc_aead_decrypt()
2077 req->iv = areq_ctx->backup_iv; in cc_aead_decrypt()
2094 areq_ctx->backup_iv = req->iv; in cc_rfc4309_ccm_decrypt()
2101 req->iv = areq_ctx->backup_iv; in cc_rfc4309_ccm_decrypt()
2206 areq_ctx->backup_iv = req->iv; in cc_rfc4106_gcm_encrypt()
[all …]
Dcc_aead.h68 u8 *backup_iv; /* store orig iv */ member