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,
109auto SOURCEMETA_CORE_CRYPTO_EXPORT
122auto SOURCEMETA_CORE_CRYPTO_EXPORT
136auto SOURCEMETA_CORE_CRYPTO_EXPORT
152auto SOURCEMETA_CORE_CRYPTO_EXPORT
167auto SOURCEMETA_CORE_CRYPTO_EXPORT
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 >