aboutsummaryrefslogtreecommitdiff
path: root/include/axolotl/base64.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/axolotl/base64.hh')
-rw-r--r--include/axolotl/base64.hh35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/axolotl/base64.hh b/include/axolotl/base64.hh
new file mode 100644
index 0000000..c322640
--- /dev/null
+++ b/include/axolotl/base64.hh
@@ -0,0 +1,35 @@
+#ifndef AXOLOLT_BASE64_HH_
+#define AXOLOLT_BASE64_HH_
+
+#include <cstddef>
+#include <cstdint>
+
+namespace axolotl {
+
+
+std::size_t encode_base64_length(
+ std::size_t input_length
+);
+
+
+void encode_base64(
+ std::uint8_t const * input, std::size_t input_length,
+ std::uint8_t * output
+);
+
+
+std::size_t decode_base64_length(
+ std::size_t input_length
+);
+
+
+void decode_base64(
+ std::uint8_t const * input, std::size_t input_length,
+ std::uint8_t * output
+);
+
+
+} // namespace axolotl
+
+
+#endif /* AXOLOLT_BASE64_HH_ */