Skip to content

hash: only pad when needed - #13

Open
vmx wants to merge 1 commit into
indutny:masterfrom
vmx:pad-when-needed
Open

hash: only pad when needed#13
vmx wants to merge 1 commit into
indutny:masterfrom
vmx:pad-when-needed

Conversation

@vmx

@vmx vmx commented Jan 5, 2018

Copy link
Copy Markdown

Only add padding if there are bytes pending. If the padding is
added unconditionally then the hash changes on every digest()
call.

Only add padding if there are bytes pending. If the padding is
added unconditionally then the hash changes on every `digest()`
call.
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