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

mbedtls_mpi_gcd(A, 0) returns 0 instead of A #4642

Closed
gilles-peskine-arm opened this issue Jun 10, 2021 · 0 comments · Fixed by #4703
Closed

mbedtls_mpi_gcd(A, 0) returns 0 instead of A #4642

gilles-peskine-arm opened this issue Jun 10, 2021 · 0 comments · Fixed by #4703
Labels
bug component-crypto Crypto primitives and low-level interfaces size-s Estimated task size: small (~2d)

Comments

@gilles-peskine-arm
Copy link
Contributor

mbedtls_mpi_gcd(G, A, B) correctly sets G to the same value as B when A is zero, but sets G to zero when B is zero.

This has no impact on the crypto code in the library, but can impact applications that call mbedtls_mpi_gcd directly.

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 size-s Estimated task size: small (~2d)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant