aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_rsa.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-31 13:39:11 -0500
committerJack Lloyd <[email protected]>2016-12-31 13:39:11 -0500
commit99491a1b7b2dd385b24a474523eb87e1281b78bd (patch)
tree6d6132d5739cf1925ec186ecd80b7cc4bdde1fc5 /src/tests/test_rsa.cpp
parent67dd5f4e44d3c95fe30253a08220b1a5943f4b42 (diff)
Fix for EME-Raw being disabled as in BSI policy
Diffstat (limited to 'src/tests/test_rsa.cpp')
-rw-r--r--src/tests/test_rsa.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tests/test_rsa.cpp b/src/tests/test_rsa.cpp
index 8cf8f3177..c0a3d2971 100644
--- a/src/tests/test_rsa.cpp
+++ b/src/tests/test_rsa.cpp
@@ -138,12 +138,18 @@ class RSA_Blinding_Tests : public Test
{
Test::Result result("RSA blinding");
+#if defined(BOTAN_HAS_EME_RAW)
+
/*
* The blinder chooses a new starting point BOTAN_BLINDING_REINIT_INTERVAL
- * so sign several times that with a single key
+ * so sign several times that with a single key.
+ *
+ * Very small values (padding/hashing disabled, only low byte set on input)
+ * are used as an additional test on the blinders.
*/
Botan::RSA_PrivateKey rsa(Test::rng(), 1024);
+
Botan::PK_Signer signer(rsa, "Raw"); // don't try this at home
Botan::PK_Verifier verifier(rsa, "Raw");
@@ -161,6 +167,7 @@ class RSA_Blinding_Tests : public Test
result.test_eq("Signature verifies",
verifier.verify_message(input, signature), true);
}
+#endif
return std::vector<Test::Result>{result};
}