err = skcipher_walk_virt(&walk, req, false); while (walk.nbytes) { err = crypt(tfm, walk.src.virt.addr, walk.dst.virt.addr, walk.nbytes, walk.iv, walk.nbytes == walk.total ? CRYPTO_LSKCIPHER_FLAG_FINAL : 0); walk.nbytes, ivs, flags & ~(walk.nbytes == walk.total ? 0 : ...
err = skcipher_walk_virt(&walk, req,true); crypto_chacha20_init(state, ctx, walk.iv); kernel_neon_begin();while(walk.nbytes >0) {unsignedintnbytes = walk.nbytes;if(nbytes < walk.total) nbytes = round_down(nbytes, walk.stride); chacha20_doneon(state, walk.dst.virt.addr, walk.src...
if (walk->nbytes - tail) sm4_ce_ccm_crypt(rkey_enc, dst, src, walk->iv, walk->nbytes - tail, mac); if (walk->nbytes) { sm4_ce_ccm_crypt(rkey_enc, walk->dst.virt.addr, walk->src.virt.addr, walk->iv, walk->nbytes, mac);...
Fixes: 7607bd8 ("[CRYPTO] blkcipher: Added blkcipher_walk_virt_block") Reported-by: xiakaixu <xiakaixu@huawei.com> Reported-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> ...