Emilia Kasper 44e4f5b04b 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)
2015-12-14 17:57:49 +01:00
..
2015-12-03 14:32:05 +00:00
2015-09-15 11:58:27 -04:00
2015-10-23 20:32:59 +02:00
2015-09-22 20:04:01 +02:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-10-23 20:32:59 +02:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-10-23 20:32:59 +02:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-12-03 14:32:05 +00:00
2015-09-15 11:58:27 -04:00
2015-09-21 10:23:25 +01:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-09-15 11:58:27 -04:00
2015-10-23 20:32:59 +02:00
2011-08-12 12:31:08 +00:00
2014-06-10 23:20:55 +02:00
2015-02-09 13:01:15 +00:00
2015-04-22 17:20:38 +01:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-11-24 23:44:05 +01:00
2015-12-03 14:45:41 +00:00
2015-08-05 22:06:22 -04:00
2015-07-14 01:17:45 +02:00
2015-01-22 09:31:38 +00:00