dolphin/Source/Core/Common/Crypto/AES.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
541 B
C
Raw Normal View History

2017-02-12 11:50:35 +01:00
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2017-02-12 11:50:35 +01:00
#pragma once
#include <cstddef>
#include <vector>
#include "Common/CommonTypes.h"
namespace Common::AES
2017-02-12 11:50:35 +01:00
{
enum class Mode
{
Decrypt,
Encrypt,
};
std::vector<u8> DecryptEncrypt(const u8* key, u8* iv, const u8* src, size_t size, Mode mode);
// Convenience functions
2017-02-12 11:50:35 +01:00
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