mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
25 lines
564 B
C++
25 lines
564 B
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <vector>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
namespace Common::AES
|
|
{
|
|
enum class Mode
|
|
{
|
|
Decrypt,
|
|
Encrypt,
|
|
};
|
|
std::vector<u8> DecryptEncrypt(const u8* key, u8* iv, const u8* src, size_t size, Mode mode);
|
|
|
|
// 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 Common::AES
|