Commit Graph

1 Commits

Author SHA1 Message Date
Fred Gylys-Colwell
8aeb9e81a0 Add extra RSA private keys to unit tests
There have been some failures with various RSA private keys. We add
them to the unit tests to make sure that OEMCrypto is able to load
these types of keys:
* Shorter than normal private exponents. This seems to occur
  occasionally even with Euler totients. But it occurs more with
  Carmichael totients.
* 0-leading-byte private exponents. This also occurs naturally for both
  Euler and Carmichael totients.
* Carmichael vs Euler totients. I think we may already have tests for
  this. But just in case.

Bug: 190450051
2021-08-05 03:13:50 +00:00