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

rsa: Adds a signer for PSS and PKCS1#1.5 #493

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

Conversation

baloo
Copy link
Contributor

@baloo baloo commented Nov 6, 2023

This adds a mockhsm implementation and provides an integration test for both signers.

This was tested with usb against an hardware yubihsm.

src/client.rs Show resolved Hide resolved
@baloo baloo force-pushed the baloo/rsa-tested branch 6 times, most recently from c74f91d to 3c1e741 Compare November 6, 2023 08:23
let mut hasher = Sha256::default();

let length = data.len() as u16;
hasher.update(length.to_be_bytes());
Copy link
Contributor Author

@baloo baloo Nov 6, 2023

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.

Copy link
Contributor Author

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?)

@baloo baloo marked this pull request as draft November 22, 2023 00:26
@baloo baloo force-pushed the baloo/rsa-tested branch 11 times, most recently from b0f92d2 to 2a7c2ca Compare November 28, 2023 23:07
@baloo baloo force-pushed the baloo/rsa-tested branch 8 times, most recently from 526c4f0 to 1ed1207 Compare December 4, 2023 20:34
@baloo baloo force-pushed the baloo/rsa-tested branch 3 times, most recently from fec351d to 3ff6888 Compare December 9, 2023 22:40
@baloo baloo marked this pull request as ready for review December 9, 2023 22:41
@baloo baloo force-pushed the baloo/rsa-tested branch 4 times, most recently from 010bffe to be4e76c Compare December 10, 2023 04:46
This adds a mockhsm implementation and provides an integration test for
both signers.
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.

None yet

2 participants