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

Merged
merged 1 commit into from
Jun 27, 2024

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
This adds a mockhsm implementation and provides an integration test for
both signers.
@tony-iqlusion tony-iqlusion merged commit f0873f4 into iqlusioninc:main Jun 27, 2024
7 checks passed
@baloo baloo deleted the baloo/rsa-tested branch June 27, 2024 21:22
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