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

20240723-AesGcmXcrypt-NULL-in-checks #7783

Merged

Conversation

douzzer
Copy link
Contributor

@douzzer douzzer commented Jul 24, 2024

wolfcrypt/src/aes.c: in wc_AesGcmEncrypt() and wc_AesGcmDecrypt(), check and return BAD_FUNC_ARG for nonzero sizes associated with null pointers.

detected and tested with wolfssl-multi-test.sh ... fips-140-3-dev-optest-acvp-sp-asm -- the x86 asm implementation has insufficient error checking, and the changes in this PR protect it.

see also https://github.com/wolfSSL/fips/pull/274 for optest-140-3 that is clean on this PR.

…eck and return BAD_FUNC_ARG for nonzero sizes associated with null pointers.
@douzzer
Copy link
Contributor Author

douzzer commented Jul 24, 2024

retest this please

Copy link
Contributor

@kaleb-himes kaleb-himes left a comment

Choose a reason for hiding this comment

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

Approved, please check FIPS repo for the change in optest app needed to support this update.

@kaleb-himes kaleb-himes merged commit 3a4788b into wolfSSL:master Jul 24, 2024
121 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.

3 participants