Disable SecureWipe specializations when CRYPTOPP_DISABLE_ASM (GH #719)

This commit is contained in:
Jeffrey Walton 2018-10-20 05:54:49 -04:00
parent c315c669b7
commit 180b39facc
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

4
misc.h
View File

@ -1223,7 +1223,9 @@ void SecureWipeBuffer(T *buf, size_t n)
*(--p) = 0;
}
#if (_MSC_VER >= 1400 || defined(__GNUC__)) && (CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86)
#if !defined(CRYPTOPP_DISABLE_ASM) && \
(_MSC_VER >= 1400 || defined(__GNUC__)) && \
(CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X86)
/// \brief Sets each byte of an array to 0
/// \param buf an array of bytes