/** Maximal possible size of the decoded data. */
#define BASE64_MAX_DECODED_SIZE(_encoded_size) ((_encoded_size) / 4 * 3)
+/**
+ * The padding character which is appended to base64 encoded data.
+ *
+ * base64 encoded data is always an ascii string whose length is a multiple of
+ * four. If the number of characters needed to encode the data is not a
+ * multiple of four, the encoded string is padded with this character. The
+ * number of pad characters is either 0, 1 or 2, but never 3, and this number
+ * is a function of the number of bytes of the unencrypted data modulo 3.
+ */
#define PAD64 '='
/**
* base64-decode a buffer.