Add base64 code (unpadded standard alphabet)

This commit is contained in:
Adam Ierymenko 2019-08-07 22:35:17 -05:00
parent 1a2ff884b3
commit 91a37f8868
No known key found for this signature in database
GPG key ID: 1657198823E52A61
3 changed files with 129 additions and 6 deletions

View file

@ -245,6 +245,10 @@ public:
static int b32d(const char *encoded, uint8_t *result, int bufSize);
static int b32e(const uint8_t *data,int length,char *result,int bufSize);
static inline unsigned int b64MaxEncodedSize(const unsigned int s) { return ((((s + 2) / 3) * 4) + 1); }
static unsigned int b64e(const uint8_t *in,unsigned int inlen,char *out,unsigned int outlen);
static unsigned int b64d(const char *in,uint8_t *out,unsigned int outlen);
/**
* Tokenize a string (alias for strtok_r or strtok_s depending on platform)
*