aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2016-10-24 18:10:16 +0200
committerRenĂ© Korthaus <[email protected]>2016-10-24 21:58:44 +0200
commit1032651e35b150f5e56813167c25b54ed2e2a549 (patch)
treea93fbb0f06e41b9ffaa70ab0a4fdd849dfbe4f2d
parent10037fe08aafc88f332aaf1f702c5ab6405067ef (diff)
Fix hardcoded SHA-1 in elgamal consistency check
-rw-r--r--src/lib/pubkey/elgamal/elgamal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/elgamal/elgamal.cpp b/src/lib/pubkey/elgamal/elgamal.cpp
index 046c2c3f6..982030beb 100644
--- a/src/lib/pubkey/elgamal/elgamal.cpp
+++ b/src/lib/pubkey/elgamal/elgamal.cpp
@@ -65,7 +65,7 @@ bool ElGamal_PrivateKey::check_key(RandomNumberGenerator& rng,
if(!strong)
return true;
- return KeyPair::encryption_consistency_check(rng, *this, "EME1(SHA-1)");
+ return KeyPair::encryption_consistency_check(rng, *this, "EME1(SHA-256)");
}
namespace {