commit | 1c6339f966b327c6994a86c553d73024586e413d | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Thu May 11 15:59:11 2017 +0100 |
committer | Hanno Becker <hanno.becker@arm.com> | Thu May 11 16:02:20 2017 +0100 |
tree | 01d8e208cb3633b6aed82aa195d9c889c331a3ff | |
parent | 88bbab22e96a5872c73337819290ff51424cdec7 [diff] |
Abort modular inversion when modulus is one. 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.