cctools
|
Base64 Encoding Operations. More...
Go to the source code of this file.
Functions | |
int | b64_encode (const void *blob, size_t bloblen, buffer_t *b64) |
Encode a binary blob in base64. More... | |
int | b64_decode (const char *b64, buffer_t *blob) |
Decode a base64 encoded blob. More... | |
Base64 Encoding Operations.
int b64_encode | ( | const void * | blob, |
size_t | bloblen, | ||
buffer_t * | b64 | ||
) |
Encode a binary blob in base64.
The character array pointed to by b64 must have length of at least b64_size(bloblen).
blob | The input binary blob. |
bloblen | The input length of the binary blob. |
b64 | The output base64 encoded blob. |
int b64_decode | ( | const char * | b64, |
buffer_t * | blob | ||
) |
Decode a base64 encoded blob.
The character array pointed to by b64 must have length of at least b64_size(bloblen).
b64 | The input base64 encoded blob. |
blob | The output binary blob. |