xlnt/source/detail/crypto/aes.hpp
2017-04-11 11:26:57 -04:00

27 lines
700 B
C++
Executable File

#pragma once
#include <cstdint>
#include <vector>
namespace xlnt {
std::vector<std::uint8_t> xaes_ecb_encrypt(
const std::vector<std::uint8_t> &input,
const std::vector<std::uint8_t> &key);
std::vector<std::uint8_t> xaes_ecb_decrypt(
const std::vector<std::uint8_t> &input,
const std::vector<std::uint8_t> &key);
std::vector<std::uint8_t> xaes_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> xaes_cbc_decrypt(
const std::vector<std::uint8_t> &input,
const std::vector<std::uint8_t> &key,
const std::vector<std::uint8_t> &iv);
} // namespace xlnt