From 764e9f839f2b93a7f95b156a09c2c5f2067b95d3 Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Fri, 13 Sep 2013 21:17:08 +0200 Subject: custom base64 decoder --- picohttp_base64.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 picohttp_base64.h (limited to 'picohttp_base64.h') diff --git a/picohttp_base64.h b/picohttp_base64.h new file mode 100644 index 0000000..736b670 --- /dev/null +++ b/picohttp_base64.h @@ -0,0 +1,21 @@ +#pragma once +#ifndef PICOHTTP_BASE64_H +#define PICOHTTP_BASE64_H + +#include +#include + +typedef uint8_t phb64raw_t[3]; +typedef char phb64enc_t[4]; +typedef uint32_t phb64state_t; + +void phb64encode( + phb64raw_t const raw, + size_t count, + phb64enc_t enc); + +size_t phb64decode( + phb64enc_t const enc, + phb64raw_t raw); + +#endif/*PICOHTTP_BASE64_H*/ -- cgit v1.2.3