diff options
author | Simon Warta <[email protected]> | 2015-06-25 11:16:28 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-25 11:16:28 +0200 |
commit | 026329021ca6693be545752238c517d477166a63 (patch) | |
tree | 76f45908577064e32f95280cd116b63fde9c72f7 /src/lib/mac/mac.cpp | |
parent | 1033054c1495d4a10afc33f2747d24d9c32b6907 (diff) |
lib/mac: Convert &vec[0] to vec.data()
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 cd1951639..0bb1939c7 100644 --- a/src/lib/mac/mac.cpp +++ b/src/lib/mac/mac.cpp @@ -20,7 +20,7 @@ bool MessageAuthenticationCode::verify_mac(const byte mac[], size_t length) if(our_mac.size() != length) return false; - return same_mem(&our_mac[0], &mac[0], length); + return same_mem(our_mac.data(), mac, length); } } |