aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/kat_rsa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/kat_rsa.cpp')
-rw-r--r--src/tests/kat_rsa.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/kat_rsa.cpp b/src/tests/kat_rsa.cpp
index 2d24c6073..28320ddb0 100644
--- a/src/tests/kat_rsa.cpp
+++ b/src/tests/kat_rsa.cpp
@@ -55,7 +55,7 @@ size_t rsa_sig_kat(const std::string& e,
PK_Verifier verify(pubkey, padding);
PK_Signer sign(privkey, padding);
- return validate_signature(verify, sign, "RSA/" + padding, msg, nonce, output);
+ return validate_signature(verify, sign, "RSA/" + padding, msg, rng, nonce, output);
}
size_t rsa_sig_verify(const std::string& e,
@@ -85,9 +85,9 @@ size_t rsa_sig_verify(const std::string& e,
size_t test_rsa()
{
- std::ifstream rsa_enc(TEST_DATA_DIR "/rsaes.vec");
- std::ifstream rsa_sig(TEST_DATA_DIR "/rsa_sig.vec");
- std::ifstream rsa_verify(TEST_DATA_DIR "/rsa_verify.vec");
+ std::ifstream rsa_enc(PK_TEST_DATA_DIR "/rsaes.vec");
+ std::ifstream rsa_sig(PK_TEST_DATA_DIR "/rsa_sig.vec");
+ std::ifstream rsa_verify(PK_TEST_DATA_DIR "/rsa_verify.vec");
size_t fails = 0;