Skip to content

SM2 named curve disabled: value outside of supported values#6880

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
SparkiDev:sm2_named_group_val_fix
Oct 18, 2023
Merged

SM2 named curve disabled: value outside of supported values#6880
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
SparkiDev:sm2_named_group_val_fix

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

SM2 named curve value is specified in specification. Values 0-14 aren't used, so, those bits in disabledCurves are used for values over 31.
Add range checks.

Testing

Standard

Checklist

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

Copy link
Copy Markdown
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

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

the master + openvpn is expected to fail but looks like there is an additional failure reported with the PRB tests that needs investigation before merging:

Requires AEAD
Verified suite validity
Unable to get supported curve
Unsupported cipher suite, ClientHello 1.3
wolfSSL Leaving DoTls13ClientHello, return -421

@JacobBarthelmeh JacobBarthelmeh removed their assignment Oct 17, 2023
@SparkiDev SparkiDev force-pushed the sm2_named_group_val_fix branch from 22f0031 to 1e0cdd1 Compare October 17, 2023 22:35
SM2 named curve value is specified in specification.
Values 0-14 aren't used, so, those bits in disabledCurves are used for
values over 31.
Add range checks.
@SparkiDev SparkiDev force-pushed the sm2_named_group_val_fix branch from 1e0cdd1 to 1e84d24 Compare October 18, 2023 00:51
@SparkiDev
Copy link
Copy Markdown
Contributor Author

retest this please

@SparkiDev SparkiDev added the For This Release Release version 5.9.1 label Oct 18, 2023
@JacobBarthelmeh JacobBarthelmeh merged commit b4724b5 into wolfSSL:master Oct 18, 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.9.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants