44 [[nodiscard]] ES_API(CPPESSENCE) abi::string cipher_name()
const;
45 [[nodiscard]] ES_API(CPPESSENCE)
bool encryptor()
const noexcept;
46 [[nodiscard]] ES_API(CPPESSENCE) abi::vector<std::byte> as_bytes(std::span<const std::byte> buffer)
const;
47 [[nodiscard]] ES_API(CPPESSENCE) abi::string as_string(std::span<const std::byte> buffer)
const;
48 [[nodiscard]] ES_API(CPPESSENCE) abi::string as_base64(std::span<const std::byte> buffer)
const;
49 [[nodiscard]] ES_API(CPPESSENCE) abi::string string_from_base64(std::string_view base64)
const;
50 [[nodiscard]] ES_API(CPPESSENCE) abi::vector<std::byte> bytes_from_base64(std::string_view base64)
const;
52 template <
byte_like_contiguous_range Range>
53 abi::vector<std::byte> as_bytes(Range&& range)
const {
54 return as_bytes(as_const_byte_span(range));
57 template <
byte_like_contiguous_range Range>
58 abi::string as_string(Range&& range)
const {
59 return as_string(as_const_byte_span(range));
62 template <
byte_like_contiguous_range Range>
63 abi::string as_base64(Range&& range)
const {
64 return as_base64(as_const_byte_span(range));
70 std::unique_ptr<impl> impl_;