diff options
Diffstat (limited to 'mdc.h')
-rw-r--r-- | mdc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ class MDC : public MDC_Info<T> { assert(direction == ENCRYPTION); this->AssertValidKeyLength(length); - memcpy(Key(), userKey, this->KEYLENGTH); + memcpy_s(m_key, m_key.size(), userKey, this->KEYLENGTH); T::CorrectEndianess(Key(), Key(), this->KEYLENGTH); } |