43 [[nodiscard]] ES_API(CPPESSENCE)
bool encryptor()
const noexcept;
44 [[nodiscard]] ES_API(CPPESSENCE) std::shared_ptr<void> context()
const;
45 [[nodiscard]] ES_API(CPPESSENCE) abi::vector<std::byte> as_bytes(std::span<const std::byte> buffer)
const;
46 [[nodiscard]] ES_API(CPPESSENCE) abi::string as_string(std::span<const std::byte> buffer)
const;
47 [[nodiscard]] ES_API(CPPESSENCE) abi::string as_base64(std::span<const std::byte> buffer)
const;
48 [[nodiscard]] ES_API(CPPESSENCE) abi::string string_from_base64(std::string_view base64)
const;
49 [[nodiscard]] ES_API(CPPESSENCE) abi::vector<std::byte> bytes_from_base64(std::string_view base64)
const;
51 template <
byte_like_contiguous_range Range>
52 abi::vector<std::byte> as_bytes(Range&& range)
const {
53 return as_bytes(as_const_byte_span(range));
56 template <
byte_like_contiguous_range Range>
57 abi::string as_string(Range&& range)
const {
58 return as_string(as_const_byte_span(range));
61 template <
byte_like_contiguous_range Range>
62 abi::string as_base64(Range&& range)
const {
63 return as_base64(as_const_byte_span(range));
69 std::unique_ptr<impl> impl_;