From 7cdde735604de3d1be54fc535df3985b89eebd0a Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 15 Jun 2015 17:48:09 +0100 Subject: Add base64 encoders and decoders --- include/axolotl/base64.hh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 include/axolotl/base64.hh (limited to 'include/axolotl') 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 +#include + +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_ */ -- cgit v1.2.3