2017-04-11 23:08:16 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace xlnt {
|
2017-04-12 00:02:35 +08:00
|
|
|
namespace detail {
|
2017-04-11 23:08:16 +08:00
|
|
|
|
2017-04-12 00:02:35 +08:00
|
|
|
std::vector<std::uint8_t> aes_ecb_encrypt(
|
2017-04-11 23:08:16 +08:00
|
|
|
const std::vector<std::uint8_t> &input,
|
|
|
|
const std::vector<std::uint8_t> &key);
|
|
|
|
|
2017-04-12 00:02:35 +08:00
|
|
|
std::vector<std::uint8_t> aes_ecb_decrypt(
|
2017-04-11 23:08:16 +08:00
|
|
|
const std::vector<std::uint8_t> &input,
|
|
|
|
const std::vector<std::uint8_t> &key);
|
|
|
|
|
2017-04-12 00:02:35 +08:00
|
|
|
std::vector<std::uint8_t> aes_cbc_encrypt(
|
2017-04-11 23:08:16 +08:00
|
|
|
const std::vector<std::uint8_t> &input,
|
|
|
|
const std::vector<std::uint8_t> &key,
|
|
|
|
const std::vector<std::uint8_t> &iv);
|
|
|
|
|
2017-04-12 00:02:35 +08:00
|
|
|
std::vector<std::uint8_t> aes_cbc_decrypt(
|
2017-04-11 23:08:16 +08:00
|
|
|
const std::vector<std::uint8_t> &input,
|
|
|
|
const std::vector<std::uint8_t> &key,
|
|
|
|
const std::vector<std::uint8_t> &iv);
|
|
|
|
|
2017-04-12 00:02:35 +08:00
|
|
|
} // namespace detail
|
2017-04-11 23:08:16 +08:00
|
|
|
} // namespace xlnt
|