Skip to content

Conversation

RRRadicalEdward
Copy link
Collaborator

In #61, one of the comments was to use picky-rs instead of rsa directly for an RSA signature generation. The changes have been made, but picky-rs generates hash itself and so we shouldn't generate it. Now, we generate a hash in ssp-rs before the sign, then, pass the generated hash to SignatureAlgorithm::RsaPkcs1v15::sign which performs hashing again. That is not correct. This PR fixes it.
Also, I fixed clippy warnings.

Copy link
Member

@CBenoit CBenoit left a comment

Choose a reason for hiding this comment

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

Thank you!

@CBenoit CBenoit merged commit 38de6bc into master Nov 11, 2022
@CBenoit CBenoit deleted the pku2u-signature-generation-fix branch November 11, 2022 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants