Lines Matching refs:walk
52 struct blkcipher_walk walk; in encrypt() local
57 blkcipher_walk_init(&walk, dst, src, nbytes); in encrypt()
58 err = blkcipher_walk_virt_block(desc, &walk, 64); in encrypt()
60 salsa20_ivsetup(ctx, walk.iv); in encrypt()
62 while (walk.nbytes >= 64) { in encrypt()
63 salsa20_encrypt_bytes(ctx, walk.src.virt.addr, in encrypt()
64 walk.dst.virt.addr, in encrypt()
65 walk.nbytes - (walk.nbytes % 64)); in encrypt()
66 err = blkcipher_walk_done(desc, &walk, walk.nbytes % 64); in encrypt()
69 if (walk.nbytes) { in encrypt()
70 salsa20_encrypt_bytes(ctx, walk.src.virt.addr, in encrypt()
71 walk.dst.virt.addr, walk.nbytes); in encrypt()
72 err = blkcipher_walk_done(desc, &walk, 0); in encrypt()