Skip to content

Commit

Permalink
Reword caching the state
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-lucas6 committed Nov 3, 2024
1 parent 6e4b4a9 commit b4c43cc
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 @@ -366,7 +366,7 @@ There are several ways to optimise the pseudocode, which is written for readabil
- Instead of `Ceiling(length / HASH_LEN)`, one can do `(length + HASH_LEN - 1) / HASH_LEN`.
- Convert constants/unchanging values to bytes once rather than in each loop iteration or in multiple loops.
- Use an incremental hash function API rather than manual concatenation.
- If possible with the hash function API, cache the hash function state after processing the key so it does not need to be processed again.
- If possible with the hash function API, cache the hash function state after processing fixed values (e.g. the key) so they do not need to be processed again.

# Choosing the Hash Function

Expand Down

0 comments on commit b4c43cc

Please sign in to comment.