mirror of
https://gitea.tendokyu.moe/moegrid/sega-mount.git
synced 2026-09-30 10:37:54 +03:00
19 lines
604 B
C++
19 lines
604 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
namespace aes {
|
|
constexpr size_t BLOCK_SIZE = 16;
|
|
constexpr size_t KEY_SIZE_128 = 16;
|
|
|
|
std::vector<uint8_t> cbc_encrypt(const uint8_t *key, const uint8_t *iv,
|
|
const uint8_t *input, size_t length,
|
|
std::string *error = nullptr);
|
|
|
|
std::vector<uint8_t> cbc_decrypt(const uint8_t *key, const uint8_t *iv,
|
|
const uint8_t *input, size_t length,
|
|
std::string *error = nullptr);
|
|
}
|