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

pkcs1v15: have fmt impls call SignatureEncoding::to_bytes #330

Merged
merged 1 commit into from
May 8, 2023

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented May 8, 2023

The fmt::{LowerHex, UpperHex} impls, with the latter called vicariously via fmt::Display, were showing the unpadded signature rather than the padded one.

This changes these impls to call SignatureEncoding::to_bytes first before displaying the signature.

The `fmt::{LowerHex, UpperHex}` impls, with the latter called
vicariously via `fmt::Display`, were showing the unpadded signature
rather than the padded one.

This changes these impls to call `SignatureEncoding::to_bytes` first
before displaying the signature.
@tarcieri tarcieri merged commit 09254b0 into master May 8, 2023
@tarcieri tarcieri deleted the pkcs1v15/have-encode-impls-pad-signature branch May 8, 2023 13:04
@tarcieri tarcieri mentioned this pull request May 8, 2023
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