diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-03-19 17:18:01 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-24 00:37:21 +0100 |
commit | ea0aa63d96cac461dd0b473437f1143898d3c3b5 (patch) | |
tree | 036839443a9df03bdce5df5f55ecd449ba8daf94 /src/common/Cryptography/SessionKeyGenerator.h | |
parent | 632609b897c7268bd18997633019dde98dd2e6d6 (diff) |
Core/Misc: C++17 cleanups, commit 2, the advstd commit
(cherry picked from commit 857f8d9231d148d4f2def9c83548b40059923029)
Diffstat (limited to 'src/common/Cryptography/SessionKeyGenerator.h')
-rw-r--r-- | src/common/Cryptography/SessionKeyGenerator.h | 5 |
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); |