diff options
author | lloyd <[email protected]> | 2010-09-13 22:13:21 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-13 22:13:21 +0000 |
commit | 548f48611760346fa2e47efd5c0865eff831946a (patch) | |
tree | a56e86b52c962f02cfb5686094c999fce690eb9d /src/constructs/cryptobox | |
parent | 6d5110c17123429576f4f68e6d76aabe61e656e7 (diff) |
Avoid 3-argument copy
Diffstat (limited to 'src/constructs/cryptobox')
-rw-r--r-- | src/constructs/cryptobox/cryptobox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constructs/cryptobox/cryptobox.cpp b/src/constructs/cryptobox/cryptobox.cpp index eadc8d1cc..6e393ecb4 100644 --- a/src/constructs/cryptobox/cryptobox.cpp +++ b/src/constructs/cryptobox/cryptobox.cpp @@ -87,7 +87,7 @@ std::string encrypt(const byte input[], u32bit input_len, for(u32bit i = 0; i != VERSION_CODE_LEN; ++i) out_buf[i] = get_byte(i, CRYPTOBOX_VERSION_CODE); - out_buf.copy(VERSION_CODE_LEN, &pbkdf_salt[0], PBKDF_SALT_LEN); + copy_mem(&out_buf[VERSION_CODE_LEN], &pbkdf_salt[0], PBKDF_SALT_LEN); pipe.read(&out_buf[VERSION_CODE_LEN + PBKDF_SALT_LEN], MAC_OUTPUT_LEN, 1); pipe.read(&out_buf[VERSION_CODE_LEN + PBKDF_SALT_LEN + MAC_OUTPUT_LEN], |