aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov/commoncrypto/commoncrypto_mode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/prov/commoncrypto/commoncrypto_mode.cpp')
-rw-r--r--src/lib/prov/commoncrypto/commoncrypto_mode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/prov/commoncrypto/commoncrypto_mode.cpp b/src/lib/prov/commoncrypto/commoncrypto_mode.cpp
index a3a27637a..cb30b6802 100644
--- a/src/lib/prov/commoncrypto/commoncrypto_mode.cpp
+++ b/src/lib/prov/commoncrypto/commoncrypto_mode.cpp
@@ -111,7 +111,7 @@ size_t CommonCrypto_Cipher_Mode::process(uint8_t msg[], size_t msg_len)
{
throw CommonCrypto_Error("CCCryptorUpdate", status);
}
- memcpy(msg, out.data(), outl);
+ copy_mem(msg, out.data(), outl);
return outl;
}
@@ -143,7 +143,7 @@ void CommonCrypto_Cipher_Mode::finish(secure_vector<uint8_t>& buffer,
{
buffer.resize(new_len);
}
- memcpy(buffer.data() - offset + written, out.data(), outl);
+ copy_mem(buffer.data() - offset + written, out.data(), outl);
written += outl;
}