1#ifndef SOURCEMETA_CORE_CRYPTO_BASE64_H_
2#define SOURCEMETA_CORE_CRYPTO_BASE64_H_
4#ifndef SOURCEMETA_CORE_CRYPTO_EXPORT
5#include <sourcemeta/core/crypto_export.h>
8#include <sourcemeta/core/crypto_secure.h>
17namespace sourcemeta::core {
32auto SOURCEMETA_CORE_CRYPTO_EXPORT
base64_encode(
const std::string_view input,
33 std::ostream &output) -> void;
44auto SOURCEMETA_CORE_CRYPTO_EXPORT
base64_encode(
const std::string_view input)
60auto SOURCEMETA_CORE_CRYPTO_EXPORT
base64_encode(
const std::string_view input,
75auto SOURCEMETA_CORE_CRYPTO_EXPORT
base64_decode(
const std::string_view input)
76 -> std::optional<std::string>;
93auto SOURCEMETA_CORE_CRYPTO_EXPORT
base64_decode(
const std::string_view input,
108auto SOURCEMETA_CORE_CRYPTO_EXPORT
is_base64(
const std::string_view input)
124auto SOURCEMETA_CORE_CRYPTO_EXPORT
137auto SOURCEMETA_CORE_CRYPTO_EXPORT
151auto SOURCEMETA_CORE_CRYPTO_EXPORT
167auto SOURCEMETA_CORE_CRYPTO_EXPORT
182auto SOURCEMETA_CORE_CRYPTO_EXPORT
197auto SOURCEMETA_CORE_CRYPTO_EXPORT
is_base64url(
const std::string_view input)
auto SOURCEMETA_CORE_CRYPTO_EXPORT is_base64url(const std::string_view input) -> bool
auto SOURCEMETA_CORE_CRYPTO_EXPORT is_base64(const std::string_view input) -> bool
auto SOURCEMETA_CORE_CRYPTO_EXPORT base64url_decode(const std::string_view input) -> std::optional< std::string >
auto SOURCEMETA_CORE_CRYPTO_EXPORT base64_encode(const std::string_view input, std::ostream &output) -> void
auto SOURCEMETA_CORE_CRYPTO_EXPORT base64url_encode(const std::string_view input, std::ostream &output) -> void
auto SOURCEMETA_CORE_CRYPTO_EXPORT base64_decode(const std::string_view input) -> std::optional< std::string >