Wrong HMAC byte order issue fixed

This commit is contained in:
Simon Rozman 2016-08-14 16:31:38 +02:00
parent 7b94f01aa7
commit a8db309a76

View File

@ -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.