aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/skein/skein_512.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/skein/skein_512.cpp
parentd6044e49cefc7fb1415033ed7f7ed74e9a985d33 (diff)
lib/hash: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/hash/skein/skein_512.cpp')
-rw-r--r--src/lib/hash/skein/skein_512.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/hash/skein/skein_512.cpp b/src/lib/hash/skein/skein_512.cpp
index 1ade6bbc5..5e186b996 100644
--- a/src/lib/hash/skein/skein_512.cpp
+++ b/src/lib/hash/skein/skein_512.cpp
@@ -104,7 +104,7 @@ void Skein_512::ubi_512(const byte msg[], size_t msg_len)
const size_t to_proc = std::min<size_t>(msg_len, 64);
T[0] += to_proc;
- load_le(&M[0], msg, to_proc / 8);
+ load_le(M.data(), msg, to_proc / 8);
if(to_proc % 8)
{
@@ -132,7 +132,7 @@ void Skein_512::add_data(const byte input[], size_t length)
buffer_insert(buffer, buf_pos, input, length);
if(buf_pos + length > 64)
{
- ubi_512(&buffer[0], buffer.size());
+ ubi_512(buffer.data(), buffer.size());
input += (64 - buf_pos);
length -= (64 - buf_pos);
@@ -158,7 +158,7 @@ void Skein_512::final_result(byte out[])
for(size_t i = buf_pos; i != buffer.size(); ++i)
buffer[i] = 0;
- ubi_512(&buffer[0], buf_pos);
+ ubi_512(buffer.data(), buf_pos);
const byte counter[8] = { 0 };