Home
last modified time | relevance | path

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

/linux/drivers/crypto/allwinner/sun4i-ss/
A Dsun4i-ss-cipher.c23 void *backup_iv = NULL; in sun4i_ss_opti_poll() local
51 backup_iv = kzalloc(ivsize, GFP_KERNEL); in sun4i_ss_opti_poll()
52 if (!backup_iv) in sun4i_ss_opti_poll()
54 scatterwalk_map_and_copy(backup_iv, areq->src, areq->cryptlen - ivsize, ivsize, 0); in sun4i_ss_opti_poll()
137 memcpy(areq->iv, backup_iv, ivsize); in sun4i_ss_opti_poll()
138 kfree_sensitive(backup_iv); in sun4i_ss_opti_poll()
202 void *backup_iv = NULL; in sun4i_ss_cipher_poll() local
247 backup_iv = kzalloc(ivsize, GFP_KERNEL); in sun4i_ss_cipher_poll()
248 if (!backup_iv) in sun4i_ss_cipher_poll()
387 memcpy(areq->iv, backup_iv, ivsize); in sun4i_ss_cipher_poll()
[all …]
/linux/drivers/crypto/amlogic/
A 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/drivers/crypto/allwinner/sun8i-ss/
A 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()
253 memcpy(areq->iv, backup_iv, ivsize); in sun8i_ss_cipher()
254 kfree_sensitive(backup_iv); in sun8i_ss_cipher()
/linux/drivers/crypto/allwinner/sun8i-ce/
A 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()
259 memcpy(areq->iv, rctx->backup_iv, ivsize); in sun8i_ce_cipher_prepare()
260 kfree_sensitive(rctx->backup_iv); in sun8i_ce_cipher_prepare()
322 memcpy(areq->iv, rctx->backup_iv, ivsize); in sun8i_ce_cipher_unprepare()
323 kfree_sensitive(rctx->backup_iv); in sun8i_ce_cipher_unprepare()
A Dsun8i-ce.h255 void *backup_iv; member
/linux/drivers/crypto/ccree/
A 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()
2094 areq_ctx->backup_iv = req->iv; in cc_rfc4309_ccm_decrypt()
2206 areq_ctx->backup_iv = req->iv; in cc_rfc4106_gcm_encrypt()
2233 areq_ctx->backup_iv = req->iv; in cc_rfc4543_gcm_encrypt()
2257 areq_ctx->backup_iv = req->iv; in cc_rfc4106_gcm_decrypt()
[all …]
A Dcc_aead.h68 u8 *backup_iv; /* store orig iv */ member

Completed in 30 milliseconds