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) bool base64_decode_alloc_ctx(struct base64_decode_context *ctx, const char *in, size_t inlen, char **out, size_t *outlen)
void base64_decode_ctx_init(struct base64_decode_context *ctx)
bool base64_decode_ctx(struct base64_decode_context *ctx, const char *in, size_t inlen, char *out, size_t *outlen)
void base64_encode(const char *in, size_t inlen, char *out, size_t outlen)
size_t base64_encode_alloc(const char *in, size_t inlen, char **out)