diff options
Diffstat (limited to 'src/tests/test_bigint.cpp')
-rw-r--r-- | src/tests/test_bigint.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/test_bigint.cpp b/src/tests/test_bigint.cpp index 0dc07aabf..61be15d15 100644 --- a/src/tests/test_bigint.cpp +++ b/src/tests/test_bigint.cpp @@ -492,6 +492,12 @@ class BigInt_Powmod_Test : public Text_Based_Test result.test_eq("power_mod", Botan::power_mod(base, exponent, modulus), expected); + /* + * Only the basic power_mod interface supports negative base + */ + if(base.is_negative()) + return result; + Botan::Power_Mod pow_mod1(modulus); pow_mod1.set_base(base); |