From 026329021ca6693be545752238c517d477166a63 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 25 Jun 2015 11:16:28 +0200 Subject: lib/mac: Convert &vec[0] to vec.data() --- src/lib/mac/mac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/mac/mac.cpp') 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); } } -- cgit v1.2.3