aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/mdx_hash
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/mdx_hash
parentd6044e49cefc7fb1415033ed7f7ed74e9a985d33 (diff)
lib/hash: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/hash/mdx_hash')
-rw-r--r--src/lib/hash/mdx_hash/mdx_hash.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/hash/mdx_hash/mdx_hash.cpp b/src/lib/hash/mdx_hash/mdx_hash.cpp
index de7e45540..bd754d3cc 100644
--- a/src/lib/hash/mdx_hash/mdx_hash.cpp
+++ b/src/lib/hash/mdx_hash/mdx_hash.cpp
@@ -48,7 +48,7 @@ void MDx_HashFunction::add_data(const byte input[], size_t length)
if(position + length >= buffer.size())
{
- compress_n(&buffer[0], 1);
+ compress_n(buffer.data(), 1);
input += (buffer.size() - position);
length -= (buffer.size() - position);
position = 0;
@@ -76,13 +76,13 @@ void MDx_HashFunction::final_result(byte output[])
if(position >= buffer.size() - COUNT_SIZE)
{
- compress_n(&buffer[0], 1);
+ compress_n(buffer.data(), 1);
zeroise(buffer);
}
write_count(&buffer[buffer.size() - COUNT_SIZE]);
- compress_n(&buffer[0], 1);
+ compress_n(buffer.data(), 1);
copy_out(output);
clear();
}