mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-29 21:01:06 +01:00
e149ad4f0a
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
24 lines
541 B
C++
24 lines
541 B
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#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
|