Skip to content

Conversation

Harshal5
Copy link
Contributor

@Harshal5 Harshal5 commented Apr 7, 2023

Description

Gatekeeper checklist

  • changelog required, bug fix
  • backport not required, fixes an issue introduced in 3.4
  • tests not required

Copy link
Contributor

@yuhaoth yuhaoth left a 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.

@Harshal5 Harshal5 force-pushed the fix/declaration_of_mbedtls_ecdsa_sign_det_restartable_function branch from f1d380b to 8eb7155 Compare April 11, 2023 11:05
@ronald-cron-arm ronald-cron-arm self-requested a review April 11, 2023 12:03
@ronald-cron-arm ronald-cron-arm added bug component-crypto Crypto primitives and low-level interfaces priority-high High priority - will be reviewed soon labels Apr 11, 2023
@Harshal5 Harshal5 requested a review from yuhaoth April 11, 2023 15:14
@Harshal5
Copy link
Contributor Author

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.

I have added the above line. PTAL.

yuhaoth
yuhaoth previously approved these changes Apr 12, 2023
Copy link
Contributor

@yuhaoth yuhaoth left a 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

Copy link
Contributor

@ronald-cron-arm ronald-cron-arm left a 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.

@Harshal5 Harshal5 force-pushed the fix/declaration_of_mbedtls_ecdsa_sign_det_restartable_function branch from 8eb7155 to 07c9321 Compare April 15, 2023 09:05
@Harshal5
Copy link
Contributor Author

Harshal5 commented Apr 15, 2023

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.

PTAL. I have updated the change logs.
Also, could you please let me know what would be the timeline of the next mbedtls release which will include this fix?

@yuhaoth
Copy link
Contributor

yuhaoth commented Apr 17, 2023

PTAL. I have updated the change logs. Also, could you please let me know what would be the timeline of the next mbedtls release which will include this fix?

Next quarter, maybe . I am not very sure, that depends on the situation.

And there is CI failure on Change log file

Copy link
Contributor

@yuhaoth yuhaoth left a 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.

@Harshal5 Harshal5 force-pushed the fix/declaration_of_mbedtls_ecdsa_sign_det_restartable_function branch 2 times, most recently from f4d18c1 to 56f3660 Compare April 17, 2023 07:12
Copy link
Contributor

@ronald-cron-arm ronald-cron-arm left a 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.

…` 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>
@Harshal5 Harshal5 force-pushed the fix/declaration_of_mbedtls_ecdsa_sign_det_restartable_function branch from 56f3660 to 8c77644 Compare April 17, 2023 07:23
Copy link
Contributor

@ronald-cron-arm ronald-cron-arm left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

Copy link
Contributor

@yuhaoth yuhaoth left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component-crypto Crypto primitives and low-level interfaces priority-high High priority - will be reviewed soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build warning when MBEDTLS_ECDSA_SIGN_ALT is defined
3 participants