Skip to content

Conversation

@SparkiDev
Copy link
Contributor

Description

When generating private key and nonce for ECDSA, use rejection sampling. Note: SP uses this algorithm

Fixes zd#17099

Testing

./configure '--disable-shared' '--enable-ecccustcurves=all'
./configure '--disable-shared' '--enable-ecccustcurves=all' --enable-heapmath
./configure '--disable-shared' '--enable-ecccustcurves=all' --enable-fastmath

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@SparkiDev SparkiDev self-assigned this Nov 30, 2023
@SparkiDev SparkiDev force-pushed the ecc_gen_k_by_reject branch 2 times, most recently from 3028ecc to 2790fc9 Compare November 30, 2023 02:05
@SparkiDev SparkiDev force-pushed the ecc_gen_k_by_reject branch 3 times, most recently from 6061904 to 7e2a399 Compare December 12, 2023 02:08
When generating private key and nonce for ECDSA, use rejection sampling.
Note: SP uses this algorithm
@SparkiDev SparkiDev added the For This Release Release version 5.8.4 label Dec 14, 2023
Copy link
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

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

Looks good otherwise. Just spelling

@SparkiDev SparkiDev assigned dgarske and wolfSSL-Bot and unassigned SparkiDev Dec 14, 2023
@SparkiDev
Copy link
Contributor Author

Reporter is happy the new code is timing resistant.

@cconlon cconlon merged commit fb6b022 into wolfSSL:master Dec 14, 2023
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.8.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants