Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Boris-de
Copy link
Contributor

The implementation of BaseMac would only take the bsize (size of the hash) into account if the #doFinal(byte[], int) method was called. Both other #doFinal methods would behave as if bsize==defbsize and not cut the hash to the right size.

This doesn't seem to be a problem right now because the #doFinal() seems to be entirely unused and #doFinal(byte[]) is only used by OpenSSHKnownHosts which always uses HMACSHA1 (with the default hash-size).

This PR depends on #164

The implementation of BaseMac would only take the bsize (size of the
hash) into account if the #doFinal(byte[], int) method was called.
Both other #doFinal methods would behave as if bsize==defbsize and
not cut the hash to the right size.
hierynomus added a commit that referenced this pull request Jan 12, 2015
@hierynomus hierynomus merged commit 3ade397 into hierynomus:master Jan 12, 2015
@Boris-de Boris-de deleted the fix_bsize_bug branch January 12, 2015 18:13
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.

2 participants