Lines Matching refs:walk
181 struct blkcipher_walk walk; in encrypt() local
186 blkcipher_walk_init(&walk, dst, src, nbytes); in encrypt()
187 err = blkcipher_walk_virt_block(desc, &walk, 64); in encrypt()
189 salsa20_ivsetup(ctx, walk.iv); in encrypt()
191 if (likely(walk.nbytes == nbytes)) in encrypt()
193 salsa20_encrypt_bytes(ctx, walk.dst.virt.addr, in encrypt()
194 walk.src.virt.addr, nbytes); in encrypt()
195 return blkcipher_walk_done(desc, &walk, 0); in encrypt()
198 while (walk.nbytes >= 64) { in encrypt()
199 salsa20_encrypt_bytes(ctx, walk.dst.virt.addr, in encrypt()
200 walk.src.virt.addr, in encrypt()
201 walk.nbytes - (walk.nbytes % 64)); in encrypt()
202 err = blkcipher_walk_done(desc, &walk, walk.nbytes % 64); in encrypt()
205 if (walk.nbytes) { in encrypt()
206 salsa20_encrypt_bytes(ctx, walk.dst.virt.addr, in encrypt()
207 walk.src.virt.addr, walk.nbytes); in encrypt()
208 err = blkcipher_walk_done(desc, &walk, 0); in encrypt()