Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECC key load: fixes #7751

Merged
merged 1 commit into from
Jul 22, 2024
Merged

ECC key load: fixes #7751

merged 1 commit into from
Jul 22, 2024

Conversation

SparkiDev
Copy link
Contributor

Description

asn.c:
Return the curve OID sum with alg_id for ECC keys.
ssl_load.c:
Don't permanently strip the PKCS#8 information as it contains the curve OID.

Fixes zd#18272

Testing

./configure '--disable-shared' '--enable-ecccustcurves' '--disable-brainpool' 'CFLAGS=-DHAVE_ECC_KOBLITZ'
make test

Checklist

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

asn.c:
  Return the curve OID sum with alg_id for ECC keys.
ssl_load.c:
Don't permanently strip the PKCS#8 information as it contains the
curve OID.
return ToTraditionalInline_ex2(input, inOutIdx, sz, algId, NULL);
}


Copy link
Contributor

Choose a reason for hiding this comment

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

Does this /* TODO: test case */ still apply? Can it be removed / confirmed that we do have test case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Called in falcon.c and sphincs.c.
We don't have tests calling the function directly.

@dgarske dgarske merged commit 7c6eb7c into wolfSSL:master Jul 22, 2024
119 checks passed
@dgarske dgarske mentioned this pull request Jul 24, 2024
4 tasks
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.

None yet

3 participants