aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/keccak/keccak.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-26 00:17:56 +0200
committerSimon Warta <[email protected]>2015-06-27 10:57:40 +0200
commitc0d847700c2905d9f7eecf2835d2750b564fc65b (patch)
treeb48224cfa0db44700531d78f0aa98bce835bfce5 /src/lib/hash/keccak/keccak.cpp
parentd6044e49cefc7fb1415033ed7f7ed74e9a985d33 (diff)
lib/hash: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/hash/keccak/keccak.cpp')
-rw-r--r--src/lib/hash/keccak/keccak.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/hash/keccak/keccak.cpp b/src/lib/hash/keccak/keccak.cpp
index 842b199a5..8ee2357b6 100644
--- a/src/lib/hash/keccak/keccak.cpp
+++ b/src/lib/hash/keccak/keccak.cpp
@@ -171,7 +171,7 @@ void Keccak_1600::add_data(const byte input[], size_t length)
if(S_pos == bitrate / 8)
{
- keccak_f_1600(&S[0]);
+ keccak_f_1600(S.data());
S_pos = 0;
}
}
@@ -184,7 +184,7 @@ void Keccak_1600::final_result(byte output[])
padding[0] = 0x01;
padding[padding.size()-1] |= 0x80;
- add_data(&padding[0], padding.size());
+ add_data(padding.data(), padding.size());
/*
* We never have to run the permutation again because we only support