Skip to content

20240916-wc_DhAgree_ct-sp-math#7978

Merged
SparkiDev merged 1 commit intowolfSSL:masterfrom
douzzer:20240916-wc_DhAgree_ct-sp-math
Sep 16, 2024
Merged

20240916-wc_DhAgree_ct-sp-math#7978
SparkiDev merged 1 commit intowolfSSL:masterfrom
douzzer:20240916-wc_DhAgree_ct-sp-math

Conversation

@douzzer
Copy link
Copy Markdown
Contributor

@douzzer douzzer commented Sep 16, 2024

wolfcrypt/src/dh.c: in wc_DhAgree_ct(), implement failsafe constant-time key size fixup, to work around sp-math constant-time key clamping.

tested with wolfssl-multi-test.sh ... super-quick-check, plus a loop of over 3000 iters of unit.test -test_wolfSSL_DH to characterize the undersize-key rate (~.64%).

…ime key size fixup, to work around sp-math constant-time key clamping.

also fix a -Wunused in src/ssl_load.c:DataToDerBuffer() teased out by configuration permutations.
@douzzer douzzer force-pushed the 20240916-wc_DhAgree_ct-sp-math branch from db6c154 to 04c781a Compare September 16, 2024 22:37
@SparkiDev
Copy link
Copy Markdown
Contributor

retest this please

@SparkiDev SparkiDev merged commit 5ef617a into wolfSSL:master Sep 16, 2024
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