aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/keccak/keccak.cpp
diff options
context:
space:
mode:
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