42 DESEncrypter(Type type,
const std::array<unsigned char, 8> &key);
44 DESEncrypter(Type type,
const std::string &key);
46 ~DESEncrypter()
override;
48 int update(
void *out,
int &out_len,
const void *
in,
int in_len)
const noexcept override;
50 int final(
void *out,
int &out_len)
const noexcept override;
62#pragma clang diagnostic push
63#pragma clang diagnostic ignored "-Wdeprecated-declarations"
64#elif defined(_MSC_VER)
65#pragma warning(disable : 4996)
66#elif defined(__GNUC__)
67#pragma GCC diagnostic push
68#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
70 using Type = DESEncrypter::Type;
72#pragma clang diagnostic pop
73#elif defined(__GNUC__)
74#pragma GCC diagnostic pop
77 DESDecrypter(Type type,
const std::array<unsigned char, 8> &key);
79 DESDecrypter(Type type,
const std::string &key);
81 ~DESDecrypter()
override;
83 int update(
void *out,
int &out_len,
const void *
in,
int in_len)
const noexcept override;
85 int final(
void *out,
int &out_len)
const noexcept override;