xlnt/source/detail/crypto/aes.hpp
2017-04-11 12:02:35 -04:00

29 lines
737 B
C++
Executable File

#pragma once
#include <cstdint>
#include <vector>
namespace xlnt {
namespace detail {
std::vector<std::uint8_t> aes_ecb_encrypt(
const std::vector<std::uint8_t> &input,
const std::vector<std::uint8_t> &key);
std::vector<std::uint8_t> aes_ecb_decrypt(
const std::vector<std::uint8_t> &input,
const std::vector<std::uint8_t> &key);
std::vector<std::uint8_t> aes_cbc_encrypt(
const std::vector<std::uint8_t> &input,
const std::vector<std::uint8_t> &key,
const std::vector<std::uint8_t> &iv);
std::vector<std::uint8_t> aes_cbc_decrypt(
const std::vector<std::uint8_t> &input,
const std::vector<std::uint8_t> &key,
const std::vector<std::uint8_t> &iv);
} // namespace detail
} // namespace xlnt