Skip to content

Commit

Permalink
reps -> reps - 1 because i starts at 0
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-lucas6 committed Nov 3, 2024
1 parent 40ef69d commit 0c42a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion draft-lucas-bkdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ counter = 1
reps = Ceiling(length / HASH_LEN)
previous = hash
result = ByteArray(0)
for i = 0 to reps
for i = 0 to reps - 1
previous = PRF(key, previous || LE32(counter++) || UTF8("bkdf"))
result = result || previous

Expand Down

0 comments on commit 0c42a69

Please sign in to comment.