From a8db309a76a8f865d1e0b31e4c5d125f1fa00366 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Sun, 14 Aug 2016 16:31:38 +0200 Subject: [PATCH] Wrong HMAC byte order issue fixed --- lib/TLS/src/Method.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/TLS/src/Method.cpp b/lib/TLS/src/Method.cpp index a1533a6..d78bbf4 100644 --- a/lib/TLS/src/Method.cpp +++ b/lib/TLS/src/Method.cpp @@ -1253,9 +1253,6 @@ void eap::method_tls::encrypt_message(_Inout_ sanitizing_blob &msg) msg.reserve(size); // Append HMAC hash. -#ifdef _HOST_LOW_ENDIAN - std::reverse(hmac.begin(), hmac.end()); -#endif msg.insert(msg.end(), hmac.begin(), hmac.end()); // Append padding.