mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Common: Use nested namespace specifiers where applicable
This commit is contained in:
@ -6,9 +6,7 @@
|
|||||||
|
|
||||||
#include "Common/Crypto/AES.h"
|
#include "Common/Crypto/AES.h"
|
||||||
|
|
||||||
namespace Common
|
namespace Common::AES
|
||||||
{
|
|
||||||
namespace AES
|
|
||||||
{
|
{
|
||||||
std::vector<u8> DecryptEncrypt(const u8* key, u8* iv, const u8* src, size_t size, Mode mode)
|
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);
|
return DecryptEncrypt(key, iv, src, size, Mode::Encrypt);
|
||||||
}
|
}
|
||||||
} // namespace AES
|
} // namespace Common::AES
|
||||||
} // namespace Common
|
|
||||||
|
@ -9,9 +9,7 @@
|
|||||||
|
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
|
||||||
namespace Common
|
namespace Common::AES
|
||||||
{
|
|
||||||
namespace AES
|
|
||||||
{
|
{
|
||||||
enum class Mode
|
enum class Mode
|
||||||
{
|
{
|
||||||
@ -23,5 +21,4 @@ std::vector<u8> DecryptEncrypt(const u8* key, u8* iv, const u8* src, size_t size
|
|||||||
// Convenience functions
|
// Convenience functions
|
||||||
std::vector<u8> Decrypt(const u8* key, u8* iv, const u8* src, size_t size);
|
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);
|
std::vector<u8> Encrypt(const u8* key, u8* iv, const u8* src, size_t size);
|
||||||
} // namespace AES
|
} // namespace Common::AES
|
||||||
} // namespace Common
|
|
||||||
|
Reference in New Issue
Block a user