aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/des/desx.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-26 11:28:13 +0200
committerSimon Warta <[email protected]>2015-06-27 11:15:18 +0200
commit4b70dbf7c24dc4f60349e96220601f6c55c81c52 (patch)
treeb20cb7ace806a5937444a926d597987588a9856b /src/lib/block/des/desx.cpp
parent922336151782c42455d08cca787215b0a4e7b617 (diff)
lib/block: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/block/des/desx.cpp')
-rw-r--r--src/lib/block/des/desx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/block/des/desx.cpp b/src/lib/block/des/desx.cpp
index 92cfc83cc..0e19460fc 100644
--- a/src/lib/block/des/desx.cpp
+++ b/src/lib/block/des/desx.cpp
@@ -19,9 +19,9 @@ void DESX::encrypt_n(const byte in[], byte out[], size_t blocks) const
{
for(size_t i = 0; i != blocks; ++i)
{
- xor_buf(out, in, &K1[0], BLOCK_SIZE);
+ xor_buf(out, in, K1.data(), BLOCK_SIZE);
des.encrypt(out);
- xor_buf(out, &K2[0], BLOCK_SIZE);
+ xor_buf(out, K2.data(), BLOCK_SIZE);
in += BLOCK_SIZE;
out += BLOCK_SIZE;
@@ -35,9 +35,9 @@ void DESX::decrypt_n(const byte in[], byte out[], size_t blocks) const
{
for(size_t i = 0; i != blocks; ++i)
{
- xor_buf(out, in, &K2[0], BLOCK_SIZE);
+ xor_buf(out, in, K2.data(), BLOCK_SIZE);
des.decrypt(out);
- xor_buf(out, &K1[0], BLOCK_SIZE);
+ xor_buf(out, K1.data(), BLOCK_SIZE);
in += BLOCK_SIZE;
out += BLOCK_SIZE;