-
Notifications
You must be signed in to change notification settings - Fork 26
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
rsa: Adds a signer for PSS and PKCS1#1.5 #493
Conversation
c74f91d
to
3c1e741
Compare
let mut hasher = Sha256::default(); | ||
|
||
let length = data.len() as u16; | ||
hasher.update(length.to_be_bytes()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to note: I dropped this. I couldn't find where it was coming from, but that was producing incorrect signatures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(and this is a breaking change, but ... this is fixing signatures?)
3c1e741
to
9f837ad
Compare
b0f92d2
to
2a7c2ca
Compare
526c4f0
to
1ed1207
Compare
fec351d
to
3ff6888
Compare
010bffe
to
be4e76c
Compare
This adds a mockhsm implementation and provides an integration test for both signers.
This adds a mockhsm implementation and provides an integration test for both signers.
This was tested with
usb
against an hardware yubihsm.