Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix: aws signer does not throw error on unnormalized sig #1099

Merged
merged 2 commits into from
Mar 31, 2022

Conversation

luketchang
Copy link
Contributor

Motivation

This commit introduced a bug in use of k256::ecdsa::Signature::normalize_s in the aws signer’s utils. The signature for normalize_s now returns an Option, which is None if no normalization action is taken. Commit maps non-normalized sig to error.

Solution

If no normalization occurs (normalize returns None), returned unnormalized signature instead of error.

PR Checklist

  • Updated the changelog

@luketchang luketchang changed the title Luke/aws signer fix fix: aws signer does not throw error on unnormalized sig Mar 31, 2022
Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch - thank you!

@gakonst gakonst merged commit b3679fe into gakonst:master Mar 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants