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

[CryptoAuthLib provider] Support for psa_sign_message and psa_verify_message. #425

Merged

Conversation

RobertDrazkowskiGL
Copy link
Contributor

Support for psa_sign_message and psa_verify_message.
Plenty of small transitions from ProviderID to ProviderId.
Corrections of formatting in e2e-tests.

Plenty of small transitions from ProviderID to ProviderId.
Corrections of formatting in e2e-tests.

Signed-off-by: Robert Drazkowski <[email protected]>
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

Thanks for the changes - looks good overall, but had a couple of comments before approving

src/providers/cryptoauthlib/hash.rs Outdated Show resolved Hide resolved
Comment on lines 86 to 88
if op.hash.len() != rust_cryptoauthlib::ATCA_SHA2_256_DIGEST_SIZE {
return Err(ResponseStatus::PsaErrorInvalidArgument);
}
Copy link
Member

Choose a reason for hiding this comment

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

Would it be helpful to do this check in psa_verify_hash_internal as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, with some minor improvements.

Input parameter handling improvements in sign operations.

Signed-off-by: Robert Drazkowski <[email protected]>
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

👍🏻 Cheers!

@ionut-arm ionut-arm requested a review from hug-dev May 18, 2021 15:12
Copy link
Member

@hug-dev hug-dev left a comment

Choose a reason for hiding this comment

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

Thanks!

@hug-dev hug-dev merged commit 92b7a7c into parallaxsecond:main May 18, 2021
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.

3 participants