Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnBase64.h
- Committer:
- uci1
- Date:
- 2012-07-31
- Revision:
- 3:24c5f0f50bf1
- Parent:
- 1:e392595b4b76
- Child:
- 84:80b15993944e
File content as of revision 3:24c5f0f50bf1:
#ifndef BASE64_H #define BASE64_H #include <stdint.h> //Originaly from Rolf's iputil.h #define BASE64ENC_LEN(slen) ( ((((slen)-1)/3)+1)<<2 ) #define CHARPAD '=' struct B64 { /* modp is faster static char* base64enc(const char* const input, const uint32_t length, char* output); */ static int modp_b64_encode(const char* str, const int len, char* dest); static int modp_b64_decode(const char* src, int len, char* dest); }; #endif