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.virt.addr, nbytes); err = skcipher_walk_done(&walk, walk.nbytes - nbytes); } kernel_ne...
err = skcipher_walk_done(&walk, err); flags |= CRYPTO_LSKCIPHER_FLAG_CONT; } if (flags & CRYPTO_LSKCIPHER_FLAG_FINAL) memcpy(req->iv, ivs, ivsize); return err; } @@ -278,6 +299,7 @@ static void __maybe_unused crypto_lskcipher_show( seq_printf(m, "max keysize : %u\n"...
walk->nbytes - tail, mac);kernel_neon_end();err = skcipher_walk_done(walk, tail);kernel_neon_begin(); }if (walk->nbytes - tail) sm4_ce_ccm_crypt(rkey_enc, dst, src, walk->iv, walk->nbytes - tail, mac); if (walk->nbytes) { ...
return blkcipher_walk_done(desc, walk, -EINVAL); }bsize = min(walk->walk_blocksize, n);walk->flags &= ~(BLKCIPHER_WALK_SLOW | BLKCIPHER_WALK_COPY | BLKCIPHER_WALK_DIFF);if (!scatterwalk_aligned(&walk->in, walk->alignmask) || @@ -246,7 +248,6 @@ static int blkcipher_walk...