Skip to content

Avoid unnecessary iteration if DerivedLength == iolist_size(Acc)#4

Open
Vorticity-Flux wants to merge 1 commit intobasho:masterfrom
Vorticity-Flux:master
Open

Avoid unnecessary iteration if DerivedLength == iolist_size(Acc)#4
Vorticity-Flux wants to merge 1 commit intobasho:masterfrom
Vorticity-Flux:master

Conversation

@Vorticity-Flux
Copy link

Without this patch call to pbkdf2(MacFunc, Password, Salt, Iterations) takes twice as much time as it should as an extra block is produced just to be immediately discarded.
This is true for any call to pbkdf2 where DerivedLength == HMAC block size.

Without this patch call to pbkdf2(MacFunc, Password, Salt, Iterations) takes twice as much time as it should as an extra block is produced just to be immediately discarded.
This is true for any call where DerivedLength == HMAC block size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant