31 #define BASE64_LENGTH(inlen) ((((inlen) + 2) / 3) * 4)
52 #define base64_decode(in, inlen, out, outlen) base64_decode_ctx(NULL, in, inlen, out, outlen)
54 #define base64_decode_alloc(in, inlen, out, outlen) base64_decode_alloc_ctx(NULL, in, inlen, out, outlen)
std::string base64_encode(unsigned char const *, unsigned int len)
void base64_decode_ctx_init(struct base64_decode_context *ctx)
size_t base64_encode_alloc(const char *in, size_t inlen, char **out)
bool base64_decode_ctx(struct base64_decode_context *ctx, const char *in, size_t inlen, char *out, size_t *outlen)
bool base64_decode_alloc_ctx(struct base64_decode_context *ctx, const char *in, size_t inlen, char **out, size_t *outlen)