Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't convert SUIT_digest bytes to hex representation #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bergzand
Copy link
Contributor

This PR fixes a bug in the COSE signature payload. The digest-bytes of the SUIT_digest object should be a bstr with the raw digest as content. In current master the digest-bytes is a hex representation of the digest which results in 1. a twice as long bstr (64 bytes instead of 32 bytes for sha256) and 2. incorrect digest verification on the receiver side.

@bergzand
Copy link
Contributor Author

@bremoran Ping! :)

@bremoran
Copy link
Collaborator

I think this issue should also be fixed in #43. Would you like to verify?

@bergzand
Copy link
Contributor Author

I think this issue should also be fixed in #43. Would you like to verify?

The offending line still results in a CBOR text string (and not in a CBOR byte string) if I'm correct. I'll verify tomorrow.

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