diff options
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 |