aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/mac/cbc_mac/cbc_mac.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-25 11:16:28 +0200
committerSimon Warta <[email protected]>2015-06-25 11:16:28 +0200
commit026329021ca6693be545752238c517d477166a63 (patch)
tree76f45908577064e32f95280cd116b63fde9c72f7 /src/lib/mac/cbc_mac/cbc_mac.cpp
parent1033054c1495d4a10afc33f2747d24d9c32b6907 (diff)
lib/mac: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/mac/cbc_mac/cbc_mac.cpp')
-rw-r--r--src/lib/mac/cbc_mac/cbc_mac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/mac/cbc_mac/cbc_mac.cpp b/src/lib/mac/cbc_mac/cbc_mac.cpp
index f07c7fe37..b58372c78 100644
--- a/src/lib/mac/cbc_mac/cbc_mac.cpp
+++ b/src/lib/mac/cbc_mac/cbc_mac.cpp
@@ -57,7 +57,7 @@ void CBC_MAC::final_result(byte mac[])
if(m_position)
m_cipher->encrypt(m_state);
- copy_mem(mac, &m_state[0], m_state.size());
+ copy_mem(mac, m_state.data(), m_state.size());
zeroise(m_state);
m_position = 0;
}