diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2019-06-18 11:33:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-18 11:33:08 +0200 |
| commit | ff96dc0e6ffd250b23ccb5ebceb12623da604435 (patch) | |
| tree | 1a1279d6bff0945ae575c195ec357af239896d8f /Source/Core/Common | |
| parent | ac562279c3a9fe9cc660b703ed0fd3f8ab2be758 (diff) | |
| parent | 72b04a353ddfa79ec10fe447bef8eeaefc824976 (diff) | |
Merge pull request #8199 from lioncash/namespace
General: Use nested namespace specifiers where applicable
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Crypto/AES.cpp | 7 | ||||
| -rw-r--r-- | Source/Core/Common/Crypto/AES.h | 7 |
2 files changed, 4 insertions, 10 deletions
diff --git a/Source/Core/Common/Crypto/AES.cpp b/Source/Core/Common/Crypto/AES.cpp index 00685beba4..d9dc03f6a1 100644 --- a/Source/Core/Common/Crypto/AES.cpp +++ b/Source/Core/Common/Crypto/AES.cpp @@ -6,9 +6,7 @@ #include "Common/Crypto/AES.h" -namespace Common -{ -namespace AES +namespace Common::AES { std::vector<u8> DecryptEncrypt(const u8* key, u8* iv, const u8* src, size_t size, Mode mode) { @@ -35,5 +33,4 @@ std::vector<u8> Encrypt(const u8* key, u8* iv, const u8* src, size_t size) { return DecryptEncrypt(key, iv, src, size, Mode::Encrypt); } -} // namespace AES -} // namespace Common +} // namespace Common::AES diff --git a/Source/Core/Common/Crypto/AES.h b/Source/Core/Common/Crypto/AES.h index 3122f5fea7..1e3e6458d0 100644 --- a/Source/Core/Common/Crypto/AES.h +++ b/Source/Core/Common/Crypto/AES.h @@ -9,9 +9,7 @@ #include "Common/CommonTypes.h" -namespace Common -{ -namespace AES +namespace Common::AES { enum class Mode { @@ -23,5 +21,4 @@ std::vector<u8> DecryptEncrypt(const u8* key, u8* iv, const u8* src, size_t size // Convenience functions std::vector<u8> Decrypt(const u8* key, u8* iv, const u8* src, size_t size); std::vector<u8> Encrypt(const u8* key, u8* iv, const u8* src, size_t size); -} // namespace AES -} // namespace Common +} // namespace Common::AES |
