aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls')
-rw-r--r--src/tls/tls_handshake_hash.cpp2
-rw-r--r--src/tls/tls_handshake_state.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tls/tls_handshake_hash.cpp b/src/tls/tls_handshake_hash.cpp
index 440c6fb82..4e7a0b9b7 100644
--- a/src/tls/tls_handshake_hash.cpp
+++ b/src/tls/tls_handshake_hash.cpp
@@ -33,7 +33,7 @@ secure_vector<byte> Handshake_Hash::final(Protocol_Version version,
hash.reset(af.make_hash_function(mac_algo));
}
else
- hash.reset(af.make_hash_function("TLS.Digest.0"));
+ hash.reset(af.make_hash_function("Parallel(MD5,SHA-160)"));
hash->update(data);
return hash->final();
diff --git a/src/tls/tls_handshake_state.cpp b/src/tls/tls_handshake_state.cpp
index 8b5de810f..84b22cc09 100644
--- a/src/tls/tls_handshake_state.cpp
+++ b/src/tls/tls_handshake_state.cpp
@@ -296,7 +296,7 @@ std::string choose_hash(const std::string& sig_algo,
return "Raw";
if(sig_algo == "RSA")
- return "TLS.Digest.0";
+ return "Parallel(MD5,SHA-160)";
if(sig_algo == "DSA")
return "SHA-1";
@@ -412,7 +412,7 @@ Handshake_State::understand_sig_format(const Public_Key& key,
}
else if(!this->version().supports_negotiable_signature_algorithms())
{
- hash_algo = "TLS.Digest.0";
+ hash_algo = "Parallel(MD5,SHA-160)";
}
const std::string padding = "EMSA3(" + hash_algo + ")";