Skip to content

20260713-wc_AesGcmEncrypt_fips#30

Open
douzzer wants to merge 1 commit into
wolfSSL:masterfrom
douzzer:20260713-wc_AesGcmEncrypt_fips
Open

20260713-wc_AesGcmEncrypt_fips#30
douzzer wants to merge 1 commit into
wolfSSL:masterfrom
douzzer:20260713-wc_AesGcmEncrypt_fips

Conversation

@douzzer

@douzzer douzzer commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

kernel-src/wolfcrypt_glue.[ch]:

  • Implement !WC_FIPS_AESGCM_ONE_SHOT_EXT_IV_ALLOWED code paths in wc_AesGcm_Appended_Tag_Encrypt() and non-streaming version of wc_AesGcm_crypt_sg_inplace(), using strictly FIPS-allowed APIs.
  • For streaming wc_AesGcm_crypt_sg_inplace(), disable FIPS status checks in wc_AesGcmDecryptUpdate() and wc_AesGcmEncryptUpdate() to avoid frivolous sync memory operations. Rely on the final status check by wc_AesGcmDecryptFinal() / wc_AesGcmEncryptFinal().

kernel-src/noise.c, kernel-src/receive.c, kernel-src/selftest/allowedips.c, kernel-src/send.c, kernel-src/wolfcrypt_glue.h: Whitespace, comment, and WC_DEBUG_*() bikeshedding, and add WC_DEBUG_PR_CODEPOINT_VAL().

tested in conjunction with wolfSSL/wolfssl#10920 and wolfssl/fips#402

* Implement !WC_FIPS_AESGCM_ONE_SHOT_EXT_IV_ALLOWED code paths in wc_AesGcm_Appended_Tag_Encrypt() and non-streaming version of wc_AesGcm_crypt_sg_inplace(), using strictly FIPS-allowed APIs.
* For streaming wc_AesGcm_crypt_sg_inplace(), disable FIPS status checks in wc_AesGcmDecryptUpdate() and wc_AesGcmEncryptUpdate() to avoid frivolous sync memory operations.  Rely on the final status check by wc_AesGcmDecryptFinal() / wc_AesGcmEncryptFinal().

kernel-src/noise.c, kernel-src/receive.c, kernel-src/selftest/allowedips.c, kernel-src/send.c, kernel-src/wolfcrypt_glue.h: Whitespace, comment, and WC_DEBUG_*() bikeshedding, and add WC_DEBUG_PR_CODEPOINT_VAL().
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