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
Support Chinese Guomi SM2 crypt #1620
Conversation
@youngbug Thank you for your contribution! In addition, unfortunately our policy is to not accept contributions, without a Contributor’s Licence Agreement (CLA) signed or authorised by yourself or your employer. |
CLA has just been submitted through Email |
library/ecp_curves.c
Outdated
@@ -752,6 +793,12 @@ int mbedtls_ecp_group_load( mbedtls_ecp_group *grp, mbedtls_ecp_group_id id ) | |||
|
|||
switch( id ) | |||
{ | |||
#if defined(MBEDTLS_ECP_DP_CURVE_SM2_256_ENABLED) | |||
case MBEDTLS_ECP_DP_SM2256: | |||
grp->modp = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I test sm2 in stm32, it works well, but it too slow, can you implement a fast mod function? and thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot link to the url: https://jenkins-internal.mbed.com/job/mbedtls-pr-multibranch/job/PR-1620/2/display/redirect |
Support Chinese Guomi SM2 Digital Signature Algorithm,SM2 256bit curve.