José
|
URL-safe Base64 Encoding & Decoding. More...
Functions | |
size_t | jose_b64_dec (const json_t *i, void *o, size_t ol) |
Decodes a URL-safe Base64 JSON string to a buffer. More... | |
jose_io_t * | jose_b64_dec_io (jose_io_t *next) |
Creates a new IO object which performs URL-safe Base64 decoding. More... | |
size_t | jose_b64_dec_buf (const void *i, size_t il, void *o, size_t ol) |
Decodes a URL-safe Base64 buffer to an output buffer. More... | |
json_t * | jose_b64_dec_load (const json_t *i) |
Decodes a JSON string from a URL-safe Base64 JSON string. More... | |
json_t * | jose_b64_enc (const void *i, size_t il) |
Encodes data to a URL-safe Base64 JSON string. More... | |
jose_io_t * | jose_b64_enc_io (jose_io_t *next) |
Creates a new IO object which performs URL-safe Base64 encoding. More... | |
size_t | jose_b64_enc_buf (const void *i, size_t il, void *o, size_t ol) |
Encodes data to a URL-safe Base64 buffer. More... | |
json_t * | jose_b64_enc_dump (const json_t *i) |
Encodes the input JSON as a URL-safe Base64 JSON string. More... | |
URL-safe Base64 Encoding & Decoding.
size_t jose_b64_dec | ( | const json_t * | i, |
void * | o, | ||
size_t | ol | ||
) |
Decodes a URL-safe Base64 JSON string to a buffer.
If o
is NULL, the number of output bytes necessary is returned.
This function will never write more than ol
bytes. If the output buffer is too small, an error will occur.
i | The input URL-safe Base64 JSON string. |
o | The output buffer (may be NULL). |
ol | The size of the output buffer. |
Creates a new IO object which performs URL-safe Base64 decoding.
All data written to the returned IO object will be decoded before passing it on to the next IO object in the chain.
next | The next IO object in the chain. |
size_t jose_b64_dec_buf | ( | const void * | i, |
size_t | il, | ||
void * | o, | ||
size_t | ol | ||
) |
Decodes a URL-safe Base64 buffer to an output buffer.
If o
is NULL, the number of output bytes necessary is returned.
This function will never write more than ol
bytes. If the output buffer is too small, an error will occur.
i | The input URL-safe Base64 buffer. |
il | The size of the data in the input buffer. |
o | The output buffer. |
ol | The size of the output buffer. |
json_t* jose_b64_dec_load | ( | const json_t * | i | ) |
Decodes a JSON string from a URL-safe Base64 JSON string.
i | The input URL-safe Base64 JSON string containing JSON data. |
json_t* jose_b64_enc | ( | const void * | i, |
size_t | il | ||
) |
Encodes data to a URL-safe Base64 JSON string.
i | The input buffer. |
il | The size of the data in the input buffer. |
Creates a new IO object which performs URL-safe Base64 encoding.
All data written to the returned IO object will be encoded before passing it on to the next IO object in the chain.
next | The next IO object in the chain. |
size_t jose_b64_enc_buf | ( | const void * | i, |
size_t | il, | ||
void * | o, | ||
size_t | ol | ||
) |
Encodes data to a URL-safe Base64 buffer.
If o
is NULL, the number of output bytes necessary is returned.
This function will never write more than ol
bytes. If the output buffer is too small, an error will occur.
i | The input buffer. |
il | The size of the data in the input buffer. |
o | The output URL-safe Base64 buffer. |
ol | The size of the output buffer. |
json_t* jose_b64_enc_dump | ( | const json_t * | i | ) |
Encodes the input JSON as a URL-safe Base64 JSON string.
i | The input JSON data. |