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

drivers: crypto: caam: Reset R/S buffers #48

Merged
merged 1 commit into from
Sep 12, 2024
Merged

drivers: crypto: caam: Reset R/S buffers #48

merged 1 commit into from
Sep 12, 2024

Conversation

jonasblixt
Copy link
Owner

In commit 'c61b0743ece0' a fix was introduces to deal with varying length of the R and S integers when they are ASN1 encoded. The CAAM expect's it's input buffers to have leading zeroes.

This fix however did not clear the R/S buffers which leads to uninitialized data at the start of the buffers when the ASN1 data is shorter than what the CAAM expects.

In commit 'c61b0743ece0' a fix was introduces to deal with varying
length of the R and S integers when they are ASN1 encoded. The CAAM
expect's it's input buffers to have leading zeroes.

This fix however did not clear the R/S buffers which leads to
uninitialized data at the start of the buffers when the ASN1 data is
shorter than what the CAAM expects.
@jonasblixt jonasblixt merged commit e36f7de into master Sep 12, 2024
16 checks passed
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.

1 participant