diff options
author | LSK <[email protected]> | 2015-07-07 15:23:31 +0300 |
---|---|---|
committer | LSK <[email protected]> | 2015-07-08 01:21:53 +0300 |
commit | b6e251f3b14c5f8040678f9a6b94dd4ae87fa69f (patch) | |
tree | 41c8d8bd1c5ddec7a3f2a97a295dd85486150f7d | |
parent | d06a791d3f5e899b1cca743d2d6fc7ba7de75ddd (diff) |
Fix compilation by Clang with _LIBCPP_DEBUG
-rw-r--r-- | src/lib/block/blowfish/blowfish.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/block/blowfish/blowfish.cpp b/src/lib/block/blowfish/blowfish.cpp index ece1a31fd..63838929d 100644 --- a/src/lib/block/blowfish/blowfish.cpp +++ b/src/lib/block/blowfish/blowfish.cpp @@ -88,10 +88,10 @@ void Blowfish::decrypt_n(const byte in[], byte out[], size_t blocks) const void Blowfish::key_schedule(const byte key[], size_t length) { P.resize(18); - std::copy(P_INIT, P_INIT + 18, P.begin()); + copy_mem(P.data(), P_INIT, 18); S.resize(1024); - std::copy(S_INIT, S_INIT + 1024, S.begin()); + copy_mem(S.data(), S_INIT, 1024); const byte null_salt[16] = { 0 }; @@ -133,10 +133,10 @@ void Blowfish::eks_key_schedule(const byte key[], size_t length, std::to_string(workfactor) + " too large"); P.resize(18); - std::copy(P_INIT, P_INIT + 18, P.begin()); + copy_mem(P.data(), P_INIT, 18); S.resize(1024); - std::copy(S_INIT, S_INIT + 1024, S.begin()); + copy_mem(S.data(), S_INIT, 1024); key_expansion(key, length, salt); |