From 1032651e35b150f5e56813167c25b54ed2e2a549 Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Mon, 24 Oct 2016 18:10:16 +0200 Subject: Fix hardcoded SHA-1 in elgamal consistency check --- src/lib/pubkey/elgamal/elgamal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3 From b7b121efc8009e04876af4773920d87fb07fb21e Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Mon, 24 Oct 2016 21:46:17 +0200 Subject: Fix hardcoded SHA-1 in eckcdsa consistency check --- src/lib/pubkey/eckcdsa/eckcdsa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/pubkey/eckcdsa/eckcdsa.cpp b/src/lib/pubkey/eckcdsa/eckcdsa.cpp index 5375d047a..9427e90ff 100644 --- a/src/lib/pubkey/eckcdsa/eckcdsa.cpp +++ b/src/lib/pubkey/eckcdsa/eckcdsa.cpp @@ -27,7 +27,7 @@ bool ECKCDSA_PrivateKey::check_key(RandomNumberGenerator& rng, return true; } - return KeyPair::signature_consistency_check(rng, *this, "EMSA1(SHA-1)"); + return KeyPair::signature_consistency_check(rng, *this, "EMSA1(SHA-256)"); } namespace { -- cgit v1.2.3