Skip to content

Simplify s2n_hmac_digest_verify#206

Merged
raycoll merged 1 commit intoaws:masterfrom
colmmacc:master
Apr 8, 2016
Merged

Simplify s2n_hmac_digest_verify#206
raycoll merged 1 commit intoaws:masterfrom
colmmacc:master

Conversation

@colmmacc
Copy link
Copy Markdown
Contributor

@colmmacc colmmacc commented Apr 7, 2016

Nathan Collins reported that s2n_hmac_digest_verify() doesn't handle the case
correctly where digests of different length are passed in. This change updates
s2n_hmac_digest_verify() to take a single length parameter, instead of two.

This makes things simpler, by avoiding the sometimes confusing double-bang
operation (!!), and removes the issue by insisting that the caller use matching
lengths to begin with.

Closes: #205

Nathan Collins reported that s2n_hmac_digest_verify() doesn't handle the case
correctly where digests of different length are passed in. This change updates
s2n_hmac_digest_verify() to take a single length parameter, instead of two.

This makes things simpler, by avoiding the sometimes confusing double-bang
operation (!!), and removes the issue by insisting that the caller use matching
lengths to begin with.

Closes: aws#205
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