aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/mac/cbc_mac/cbc_mac.cpp
diff options
context:
space:
mode:
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;
}