-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ecdsa: fix -missing-prototypes
warning when MBEDTLS_ECDSA_SIGN_ALT
is defined
#7415
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
ecdsa: fix -missing-prototypes
warning when MBEDTLS_ECDSA_SIGN_ALT
is defined
#7415
Conversation
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.
Please add * \param md_alg The hash algorithm used to hash the original data.
after line 325 to fix CI failure.
The ci failure for platform test should be ignore. It is not due to this PR.
f1d380b
to
8eb7155
Compare
I have added the above line. PTAL. |
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.
Thanks your contribution, @Harshal5 . It looks good to me
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.
This looks good to me but as it is a bug fix I think we need a change log. If you are not familiar with Mbed TLS change logs, please have a look to ChangeLog.d/00README.md.
8eb7155
to
07c9321
Compare
PTAL. I have updated the change logs. |
Next quarter, maybe . I am not very sure, that depends on the situation. And there is CI failure on Change log file |
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.
A nitpick comments. Others looks good to me.
ChangeLog.d/fix-declaration-of-mbedtls_ecdsa_sign_det_restartable-function.txt
Outdated
Show resolved
Hide resolved
f4d18c1
to
56f3660
Compare
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.
Minor suggestions for the change log otherwise this looks good to me.
ChangeLog.d/fix-declaration-of-mbedtls_ecdsa_sign_det_restartable-function.txt
Outdated
Show resolved
Hide resolved
…` is defined - In `mbedtls/v3.4.0`, ECDSA restartable sign and verify functions (`ecdsa.c`) were made public. - But the `mbedtls_ecdsa_sign_det_restartable` function prototype was declared in the file `ecdsa.h`, only when `MBEDTLS_ECDSA_SIGN_ALT` is not defined. Signed-off-by: harshal.patil <harshal.patil@espressif.com>
56f3660
to
8c77644
Compare
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.
LGTM, thanks.
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.
LGTM
Description
mbedtls/v3.4.0
, ECDSA restartable sign and verify functions (ecdsa.c
) were made public (ref: 2ba002c).mbedtls_ecdsa_sign_det_restartable
function prototype was declared in the fileecdsa.h
, only whenMBEDTLS_ECDSA_SIGN_ALT
is not defined.Gatekeeper checklist