32 # define BASE64_LENGTH(inlen) ((((inlen) + 2) / 3) * 4) 43 char *
out,
size_t outlen);
50 const char *
in,
size_t inlen,
51 char *
out,
size_t *outlen);
54 const char *
in,
size_t inlen,
55 char **
out,
size_t *outlen);
57 #define base64_decode(in, inlen, out, outlen) \ 58 base64_decode_ctx (NULL, in, inlen, out, outlen) 60 #define base64_decode_alloc(in, inlen, out, outlen) \ 61 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)