| ... | ... | @@ -130,7 +130,7 @@ pub fn pbkdf2(derivedKey: []u8, password: []const u8, salt: []const u8, rounds: |
| 130 | 130 | ctx.final(prevBlock[0..]); |
| 131 | 131 | |
| 132 | 132 | // Choose portion of DK to write into (T_n) and initialize |
| 133 | | const offset: u64 = @as(u64, block) * hLen; |
| 133 | const offset: usize = @as(usize, block) * hLen; |
| 134 | 134 | const blockLen = if (block != l - 1) hLen else r; |
| 135 | 135 | var dkBlock = derivedKey[offset..(offset + blockLen)]; |
| 136 | 136 | mem.copy(u8, dkBlock, prevBlock[0..dkBlock.len]); |