Skip to content

Add signature tests for RSA and ECDSA #35

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

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Conversation

gowthamsk-arm
Copy link
Collaborator

The tests perform the signature operation via the Parsec OpenSSL Provider and verify the signature using the Parsec client with the name "parsec-tool". The keys should have been pre-generated before running the test using the parsec-tool.

Signed-off-by: Gowtham Suresh Kumar gowtham.sureshkumar@arm.com

@tgonzalezorlandoarm
Copy link
Member

Could you please update the way we log the tests in here so that failures show their trace?

@gowthamsk-arm gowthamsk-arm force-pushed the gsk/sign_test branch 8 times, most recently from 8cd2175 to 25354c1 Compare April 10, 2024 09:37
@tgonzalezorlandoarm
Copy link
Member

I think this looks very good overall, just one minor comment

The tests perform the signature operation via the Parsec OpenSSL
Provider and verify the signature using the Parsec client with the
name "parsec-tool". The keys should have been pre-generated before
running the test using the parsec-tool.

Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
We will be adding an ECDSA key required for the test setup so the
existing key name is changed to be specific.

Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
The openssl2 layer provides functions that map the error from openssl
C calls to a rust error. This also provides proper logs for debugging
in case of an error.

Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
Copy link
Member

@tgonzalezorlandoarm tgonzalezorlandoarm left a comment

Choose a reason for hiding this comment

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

LGTM

@tgonzalezorlandoarm tgonzalezorlandoarm merged commit a377c51 into main Apr 11, 2024
@tgonzalezorlandoarm tgonzalezorlandoarm deleted the gsk/sign_test branch April 11, 2024 09:30
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