diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-01-23 23:49:34 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-23 23:49:34 +0100 |
commit | cacdb57c9cd302e5d746e96cc37aa395564279c6 (patch) | |
tree | b734f2dd66916dc1841f86e432c22499507a5626 /src/common/Cryptography/CryptoGenerics.h | |
parent | 5f5d32888ac97b24b46a9c2d08f028583faaa911 (diff) |
Core/Crypto: c++17-ify crypto code cherry picked earlier that was downgraded to c++14
Diffstat (limited to 'src/common/Cryptography/CryptoGenerics.h')
-rw-r--r-- | src/common/Cryptography/CryptoGenerics.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/common/Cryptography/CryptoGenerics.h b/src/common/Cryptography/CryptoGenerics.h index affa11bf79d..75ad443b32a 100644 --- a/src/common/Cryptography/CryptoGenerics.h +++ b/src/common/Cryptography/CryptoGenerics.h @@ -25,9 +25,7 @@ #include <iterator> #include <vector> -namespace Trinity -{ -namespace Impl +namespace Trinity::Impl { struct CryptoGenericsImpl { @@ -57,11 +55,8 @@ namespace Impl } }; } -} -namespace Trinity -{ -namespace Crypto +namespace Trinity::Crypto { template <typename Cipher> void AEEncryptWithRandomIV(std::vector<uint8>& data, typename Cipher::Key const& key) @@ -112,6 +107,5 @@ namespace Crypto return AEDecrypt<Cipher>(data, key.ToByteArray<Cipher::KEY_SIZE_BYTES>()); } } -} #endif |