Skip to content

Fixes for DH parameter and key pair export, padPKCS7() block size checks, PKCS12 mapping comment - #299

Merged
rlm2002 merged 5 commits into
wolfSSL:masterfrom
cconlon:fenrirOct15
Oct 23, 2026
Merged

rlm2002 merged 5 commits into
wolfSSL:masterfrom
cconlon:fenrirOct15

Conversation

@cconlon

@cconlon cconlon commented Oct 16, 2026

Copy link
Copy Markdown
Member

This PR fixes 5 Fenrir issues:

  • F-15034: Pass a q buffer to wc_DhExportParamsRaw() in Dh.generateDhParams() so generated p and g are returned.
  • F-15036: Always pass qSz and a q buffer in Dh.exportParams() so keys without q export p and g.
  • F-15035: Size Dh.exportKeyPair() buffers from p, since wc_DhExportKeyPair() has no size query.
  • F-15061: Correct the padPKCS7() Javadoc for zero-length input and reject block sizes outside 1 to 255.
  • F-15062: Reword the PKCS12-to-WKS mapping comment in WolfCryptProvider to refer to PKCS12.

@cconlon cconlon self-assigned this Oct 16, 2026
Copilot AI balanced review requested due to automatic review settings October 16, 2026 16:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #299

Scan targets checked: wolfcrypt-jni-src, wolfcrypt-jni-bugs
Coverage: 2 of 9 in-scope changed file(s) opened by the reviewer; not opened: jni/include/com_wolfssl_wolfcrypt_Aes.h, jni/include/com_wolfssl_wolfcrypt_AesEcb.h, jni/include/com_wolfssl_wolfcrypt_Des3.h, src/main/java/com/wolfssl/provider/jce/WolfCryptProvider.java, src/test/java/com/wolfssl/provider/jce/test/WolfCryptAlgorithmParameterGeneratorTest.java, src/test/java/com/wolfssl/wolfcrypt/test/AesTest.java, src/test/java/com/wolfssl/wolfcrypt/test/DhTest.java

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

Review tier: Lite

@cconlon cconlon assigned rlm2002 and unassigned cconlon Oct 16, 2026
@rlm2002
rlm2002 merged commit bc8f091 into wolfSSL:master Oct 23, 2026
189 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.

4 participants