Calculate the output size in bytes needed to decode a base64 string with length x to a data buffer.
Calculate the output size needed to base64-encode x bytes to a null-terminated string.
Decode a base64-encoded string.
Encode data to base64 and null-terminate.