diff options
Diffstat (limited to 'src/lib/mac/mac.cpp')
-rw-r--r-- | src/lib/mac/mac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/mac/mac.cpp b/src/lib/mac/mac.cpp index c48deb24b..053e36b6f 100644 --- a/src/lib/mac/mac.cpp +++ b/src/lib/mac/mac.cpp @@ -155,7 +155,7 @@ bool MessageAuthenticationCode::verify_mac(const uint8_t mac[], size_t length) if(our_mac.size() != length) return false; - return same_mem(our_mac.data(), mac, length); + return constant_time_compare(our_mac.data(), mac, length); } } |