aboutsummaryrefslogtreecommitdiff
path: root/src/common/Cryptography/SessionKeyGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Cryptography/SessionKeyGenerator.h')
-rw-r--r--src/common/Cryptography/SessionKeyGenerator.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/Cryptography/SessionKeyGenerator.h b/src/common/Cryptography/SessionKeyGenerator.h
index 5e9471b7746..1ff20d6312e 100644
--- a/src/common/Cryptography/SessionKeyGenerator.h
+++ b/src/common/Cryptography/SessionKeyGenerator.h
@@ -20,7 +20,6 @@
#include "CryptoHash.h"
#include <cstring>
-#include "advstd.h" // for data/size
template <typename Hash>
class SessionKeyGenerator
@@ -30,8 +29,8 @@ class SessionKeyGenerator
SessionKeyGenerator(C const& buf) :
o0it(o0.begin())
{
- uint8 const* data = advstd::data(buf);
- size_t const len = advstd::size(buf);
+ uint8 const* data = std::data(buf);
+ size_t const len = std::size(buf);
size_t const halflen = (len / 2);
o1 = Hash::GetDigestOf(data, halflen);