Skip to content
Permalink
Browse files

Common: Use nested namespace specifiers where applicable

  • Loading branch information...
lioncash committed Jun 17, 2019
1 parent 32bacfa commit 8e030a4a456cc74289cbed89ee8bbca60c9acc34
Showing with 4 additions and 10 deletions.
  1. +2 −5 Source/Core/Common/Crypto/AES.cpp
  2. +2 −5 Source/Core/Common/Crypto/AES.h
@@ -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
@@ -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

0 comments on commit 8e030a4

Please sign in to comment.
You can’t perform that action at this time.