INNER CODE UNIT · Rust
curr_offset
brndnmtthws/dryoc · src/argon2/mod.rs:517
let curr_offset = position.lane * instance.lane_length
+ position.slice as u32 * instance.segment_length
+ starting_index;
let mut prev_offset = if curr_offset.is_multiple_of(instance.lane_length) {
curr_offset + instance.lane_length - 1
} else {
curr_offset - 1
};
let mut scratch = Block::default();
for (curr_offset, i) in (curr_offset..).zip(starting_index..instance.segment_length) {
if curr_offset % instance.lane_length == 1 {
prev_offset = curr_offset - 1;
}
let pseudo_rand = if data_independent_addressing {