mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-12 01:29:52 +08:00

The modular inversion function hangs when provided with the modulus 1. This commit refuses this modulus with a BAD_INPUT error code. It also adds a test for this case.