#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/base32/base32.h"
#include <stddef.h>
#include <limits>
#include <string_view>
#include "base/check_op.h"
#include "base/numerics/safe_math.h"
namespace base32 {
namespace {
constexpr char kEncoding[] = …;
constexpr char kPaddingChar = …;
uint8_t ReverseMapping(char input_char) { … }
}
std::string Base32Encode(base::span<const uint8_t> input,
Base32EncodePolicy policy) { … }
std::vector<uint8_t> Base32Decode(std::string_view input) { … }
}