aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-08 15:45:43 +0000
committerlloyd <[email protected]>2010-03-08 15:45:43 +0000
commit868c7f7d9c306e6e15d24f2b32e529aa1956516e (patch)
tree2d179e2ff08144c63ad5d7462cd5923524a92d33 /checks
parent8a47f6f2bbf169a2ea0853234f81b49070c770df (diff)
Rename PK_Encryptor_MR_with_EME and PK_Decryptor_MR_with_EME to
PK_Encryptor_EME and PK_Decryptor_EME; the message recovery is somewhat implicit in the recovery of the plaintext.
Diffstat (limited to 'checks')
-rw-r--r--checks/pk.cpp12
-rw-r--r--checks/pk_bench.cpp8
2 files changed, 10 insertions, 10 deletions
diff --git a/checks/pk.cpp b/checks/pk.cpp
index cee298f6b..a69fa7bc7 100644
--- a/checks/pk.cpp
+++ b/checks/pk.cpp
@@ -238,8 +238,8 @@ u32bit validate_rsa_enc_pkcs8(const std::string& algo,
std::string eme = algo.substr(12, std::string::npos);
- PK_Encryptor_MR_with_EME e(*rsapub, eme);
- PK_Decryptor_MR_with_EME d(*rsapriv, eme);
+ PK_Encryptor_EME e(*rsapub, eme);
+ PK_Decryptor_EME d(*rsapriv, eme);
bool failure = false;
validate_encryption(e, d, algo, str[1], str[2], str[3], failure);
@@ -265,8 +265,8 @@ u32bit validate_rsa_enc(const std::string& algo,
std::string eme = algo.substr(6, std::string::npos);
- PK_Encryptor_MR_with_EME e(pubkey, eme);
- PK_Decryptor_MR_with_EME d(privkey, eme);
+ PK_Encryptor_EME e(pubkey, eme);
+ PK_Decryptor_EME d(privkey, eme);
bool failure = false;
validate_encryption(e, d, algo, str[3], str[4], str[5], failure);
@@ -291,12 +291,12 @@ u32bit validate_elg_enc(const std::string& algo,
std::string eme = algo.substr(8, std::string::npos);
- PK_Decryptor_MR_with_EME d(privkey, eme);
+ PK_Decryptor_EME d(privkey, eme);
bool failure = false;
if(str.size() == 7)
{
- PK_Encryptor_MR_with_EME e(pubkey, eme);
+ PK_Encryptor_EME e(pubkey, eme);
validate_encryption(e, d, algo, str[4], str[5], str[6], failure);
}
else
diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp
index 0cc1bea3a..c9e79e997 100644
--- a/checks/pk_bench.cpp
+++ b/checks/pk_bench.cpp
@@ -214,8 +214,8 @@ void benchmark_rsa(RandomNumberGenerator& rng,
while(verify_timer.seconds() < seconds ||
sig_timer.seconds() < seconds)
{
- PK_Encryptor_MR_with_EME enc(key, enc_padding);
- PK_Decryptor_MR_with_EME dec(key, enc_padding);
+ PK_Encryptor_EME enc(key, enc_padding);
+ PK_Decryptor_EME dec(key, enc_padding);
benchmark_enc_dec(enc, dec, enc_timer, dec_timer,
rng, 10000, seconds);
@@ -675,8 +675,8 @@ void benchmark_elg(RandomNumberGenerator& rng,
ElGamal_PrivateKey key(rng, group);
keygen_timer.stop();
- PK_Decryptor_MR_with_EME dec(key, padding);
- PK_Encryptor_MR_with_EME enc(key, padding);
+ PK_Decryptor_EME dec(key, padding);
+ PK_Encryptor_EME enc(key, padding);
benchmark_enc_dec(enc, dec, enc_timer, dec_timer,
rng, 1000, seconds);