#ifndef BASE64_H
#define BASE64_H

#include <stddef.h>
#include <stdint.h>

/* Encodes data to base64. Returns number of bytes written, or -1 if the buffer is too small. */
int base64_encode(const uint8_t *in, size_t in_len,
		  char *out, size_t out_sz);

#endif /* BASE64_H */
