Skip to content

20260611-AES-XTS-key-half-inequality#10666

Merged
douzzer merged 1 commit into
wolfSSL:masterfrom
douzzer:20260611-AES-XTS-key-half-inequality
Jun 12, 2026
Merged

20260611-AES-XTS-key-half-inequality#10666
douzzer merged 1 commit into
wolfSSL:masterfrom
douzzer:20260611-AES-XTS-key-half-inequality

Conversation

@douzzer

@douzzer douzzer commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

fixes for F-3325:

wolfcrypt/src/aes.c: enforce AES-XTS K1!=K2 constraint in wc_AesXtsSetKeyNoInit() unless WC_AES_XTS_ALLOW_DUPLICATE_KEYS and !HAVE_FIPS:

tests/api/test_aes.c: add negative tests to test_wc_AesXtsSetKey() for K1==K2;

wolfcrypt/test/test.c: fix keys in aes_xts_128_inplace_test() and aes_xts_192_inplace_test() so that K1!=K2, update test vectors, and remove associated !HAVE_FIPS gating;

linuxkm/lkcapi_aes_glue.c: synchronize aes_xts_128_test() test of ciphertext stealing in-place with wolfcrypt/test/test.c.

wrapper/rust/wolfssl-wolfcrypt/src/aes.rs: synchronize XTS streaming test with wolfcrypt/test/test.c.

linuxkm/: refactor self-test sensing with version-gated setup in linuxkm_wc_port.h and refactored gates in lkcapi_glue.c.

tested with

wolfssl-multi-test.sh ...
quantum-safe-wolfssl-all-crypto-only-noasm-fips-dev-linuxkm-next-clang-tidy
quantum-safe-wolfssl-all-crypto-only-intelasm-fips-dev-linuxkm-next-insmod
linuxkm-all-crypto-cryptonly-intelasm-all-LKCAPI-no-twc-insmod-crypto-fuzzer-fallback-fuzzer
'linuxkm-fips-dev-.*cust-kern.*'
clang-tidy-all-sp-all
check-source-text
quantum-safe-wolfssl-all-g\\+\\+-latest-debug
fips-140-3-dev-optest-acvp-sp-asm
fips-140-3-v6-optest-acvp-sp-asm
fips-140-3-dev-optest-acvp-sp-asm
fips-140-3-v6-all
fips-140-3-dev-all

@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 #10666

Scan targets checked: linuxkm-bugs, linuxkm-src, wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

No new issues found in the changed files. ✅

Comment thread .wolfssl_known_macro_extras
wolfcrypt/src/aes.c: enforce AES-XTS K1!=K2 constraint in wc_AesXtsSetKeyNoInit() unless WC_AES_XTS_ALLOW_DUPLICATE_KEYS and !HAVE_FIPS:

tests/api/test_aes.c: add negative tests to test_wc_AesXtsSetKey() for K1==K2;

wolfcrypt/test/test.c: fix keys in aes_xts_128_inplace_test() and aes_xts_192_inplace_test() so that K1!=K2, update test vectors, and remove associated !HAVE_FIPS gating;

linuxkm/lkcapi_aes_glue.c: synchronize aes_xts_128_test() test of ciphertext stealing in-place with wolfcrypt/test/test.c.

wrapper/rust/wolfssl-wolfcrypt/src/aes.rs: synchronize XTS streaming test with wolfcrypt/test/test.c.

linuxkm/: refactor self-test sensing with version-gated setup in linuxkm_wc_port.h and refactored gates in lkcapi_glue.c.
@douzzer douzzer force-pushed the 20260611-AES-XTS-key-half-inequality branch from a3b0854 to 0097739 Compare June 11, 2026 20:38
@douzzer douzzer removed their assignment Jun 11, 2026
@douzzer douzzer added the For This Release Release version 5.9.2 label Jun 11, 2026

@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 #10666

Scan targets checked: linuxkm-bugs, linuxkm-src, wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfcrypt-rs-src, wolfcrypt-src, wolfssl-bugs, wolfssl-src

No new issues found in the changed files. ✅

@dgarske

dgarske commented Jun 11, 2026

Copy link
Copy Markdown
Member

Jenkins retest this please: "Build 'wolfSSL/PRB-fips-repo-and-harness-test-v3-part2' failed with result: FAILURE"

@dgarske dgarske left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Over to @SparkiDev

@douzzer douzzer merged commit 3e390b1 into wolfSSL:master Jun 12, 2026
492 of 493 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For This Release Release version 5.9.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants