Wrong HMAC byte order issue fixed
This commit is contained in:
parent
7b94f01aa7
commit
a8db309a76
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user