mbedtls_mpi_gcd(A, 0) returns 0 instead of A #4642
Labels
bug
component-crypto
Crypto primitives and low-level interfaces
size-s
Estimated task size: small (~2d)
mbedtls_mpi_gcd(G, A, B)
correctly setsG
to the same value asB
whenA
is zero, but setsG
to zero whenB
is zero.This has no impact on the crypto code in the library, but can impact applications that call
mbedtls_mpi_gcd
directly.The text was updated successfully, but these errors were encountered: