Skip to content

Curve25519/Ed25519: align buffers#6750

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
SparkiDev:curve25519_thumb2_2
Sep 8, 2023
Merged

Curve25519/Ed25519: align buffers#6750
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
SparkiDev:curve25519_thumb2_2

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

Make data structures align buffers.
Align buffers in functions.

Testing

Tested ARMv7M.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@SparkiDev SparkiDev self-assigned this Sep 4, 2023
@SparkiDev SparkiDev force-pushed the curve25519_thumb2_2 branch 4 times, most recently from f992de1 to a911305 Compare September 6, 2023 02:25
@SparkiDev SparkiDev force-pushed the curve25519_thumb2_2 branch 5 times, most recently from 0dde5d4 to d0d1f4d Compare September 7, 2023 08:47
@markhermeling
Copy link
Copy Markdown

Still 2 buffer overruns according to CodeSonar on this stream related to the same path.
You fixed the path originating in wc_Ed25519PublicKeyDecode.

I re-ran CodeSonar on your branch (SparkiDev:curve25519_thumb2_2) and now CodeSonar flags the same problem originating in wc_Ed25519PrivateKeyDecode.
search-3.sarif.zip

SARIF for both remaining issues attached

Make data structures align buffers.
Align buffers in functions.
Add versions that don't use umaal
@SparkiDev
Copy link
Copy Markdown
Contributor Author

Made an update to wc_Ed25519PrivateKeyDecode to fix CodeSonar issue.

@markhermeling
Copy link
Copy Markdown

Made an update to wc_Ed25519PrivateKeyDecode to fix CodeSonar issue.

Clean bill of health! Warnings are gone.

@JacobBarthelmeh JacobBarthelmeh merged commit f8f6619 into wolfSSL:master Sep 8, 2023
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.

4 participants