Skip to content

signature: Small signature optimization #47

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 1 commit into from
Apr 19, 2024

Conversation

tgonzalezorlandoarm
Copy link
Member

Only calculate the signature when necessary. When sigsize is smaller than the expected signature length, preemptively exit the function instead of doing that after having calculated the signature.

This saves some computation power.

Only calculate the signature when necessary. When sigsize is smaller
than the expected signature length, preemptively exit the function
instead of doing that after having calculated the signature.

This saves some computation power.

Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
@tgonzalezorlandoarm
Copy link
Member Author

This one comes in in replacement of #46 .
For the future, perhaps we can find a way of making use of a standard get_signature_len function

@gowthamsk-arm gowthamsk-arm merged commit 7afcdc5 into main Apr 19, 2024
@tgonzalezorlandoarm tgonzalezorlandoarm deleted the tg/signature-minor-improvement branch May 20, 2024 16:03
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