Emilia Kasper d6af325d51 Fix a ** 0 mod 1 = 0 for real this time.
Commit 2b0180c37fa6ffc48ee40caa831ca398b828e680 attempted to do this but
only hit one of many BN_mod_exp codepaths. Fix remaining variants and add
a test for each method.

Thanks to Hanno Boeck for reporting this issue.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
(cherry picked from commit d911097d7c93e4cfeab624b34d73fe51da158b69)
(cherry picked from commit 44e4f5b04b43054571e278381662cebd3f3555e6)
2015-12-14 18:27:04 +01:00
..
2015-10-23 20:41:17 +02:00
2015-12-03 13:45:13 +01:00
2015-09-15 12:00:18 -04:00
2015-10-23 20:47:53 +02:00
2015-09-22 20:09:42 +02:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-10-23 20:47:53 +02:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-10-23 20:47:53 +02:00
2012-06-08 09:18:47 +00:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-12-03 13:45:13 +01:00
2015-09-15 12:00:18 -04:00
2015-09-21 10:26:32 +01:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-09-15 12:00:18 -04:00
2015-10-23 20:47:53 +02:00
2011-08-12 12:31:08 +00:00
2015-02-09 13:01:28 +00:00
2015-05-26 09:58:12 +02:00
2015-04-22 17:24:47 +01:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-11-24 23:44:50 +01:00
2015-12-03 14:51:13 +00:00
2015-07-14 01:18:57 +02:00
2015-01-22 09:38:39 +00:00