Lines Matching refs:ivsize
132 unsigned int todo, len, offset, ivsize; in sun8i_ce_cipher_prepare() local
195 ivsize = crypto_skcipher_ivsize(tfm); in sun8i_ce_cipher_prepare()
197 rctx->ivlen = ivsize; in sun8i_ce_cipher_prepare()
199 offset = areq->cryptlen - ivsize; in sun8i_ce_cipher_prepare()
201 offset, ivsize, 0); in sun8i_ce_cipher_prepare()
203 memcpy(chan->bounce_iv, areq->iv, ivsize); in sun8i_ce_cipher_prepare()
282 if (areq->iv && ivsize > 0) { in sun8i_ce_cipher_prepare()
285 offset = areq->cryptlen - ivsize; in sun8i_ce_cipher_prepare()
287 memcpy(areq->iv, chan->backup_iv, ivsize); in sun8i_ce_cipher_prepare()
288 memzero_explicit(chan->backup_iv, ivsize); in sun8i_ce_cipher_prepare()
291 ivsize, 0); in sun8i_ce_cipher_prepare()
293 memzero_explicit(chan->bounce_iv, ivsize); in sun8i_ce_cipher_prepare()
312 unsigned int ivsize, offset; in sun8i_ce_cipher_unprepare() local
320 ivsize = crypto_skcipher_ivsize(tfm); in sun8i_ce_cipher_unprepare()
330 if (areq->iv && ivsize > 0) { in sun8i_ce_cipher_unprepare()
333 offset = areq->cryptlen - ivsize; in sun8i_ce_cipher_unprepare()
335 memcpy(areq->iv, chan->backup_iv, ivsize); in sun8i_ce_cipher_unprepare()
336 memzero_explicit(chan->backup_iv, ivsize); in sun8i_ce_cipher_unprepare()
339 ivsize, 0); in sun8i_ce_cipher_unprepare()
341 memzero_explicit(chan->bounce_iv, ivsize); in sun8i_ce_cipher_unprepare()