Orcania
Potluck with different functions for different purposes that can be shared among C programs
|
Functions | |
int | o_base64_encode (const unsigned char *src, size_t len, unsigned char *out, size_t *out_len) |
int | o_base64_decode (const unsigned char *src, size_t len, unsigned char *out, size_t *out_len) |
int | o_base64url_encode (const unsigned char *src, size_t len, unsigned char *out, size_t *out_len) |
int | o_base64url_decode (const unsigned char *src, size_t len, unsigned char *out, size_t *out_len) |
int | o_base64url_2_base64 (const unsigned char *src, size_t len, unsigned char *out, size_t *out_len) |
int | o_base64_2_base64url (const unsigned char *src, size_t len, unsigned char *out, size_t *out_len) |
int o_base64_encode | ( | const unsigned char * | src, |
size_t | len, | ||
unsigned char * | out, | ||
size_t * | out_len | ||
) |
o_base64_encode - Base64 encode
src | Data to be encoded |
len | Length of the data to be encoded |
out | Pointer to output variable |
out_len | Pointer to output length variable |
The nul terminator is not included in out_len.
o_base64_encode - Base64 encode : Data to be encoded : Length of the data to be encoded : Pointer to output variable : Pointer to output length variable Returns: 1 on success, 0 on failure
The nul terminator is not included in out_len.
int o_base64_decode | ( | const unsigned char * | src, |
size_t | len, | ||
unsigned char * | out, | ||
size_t * | out_len | ||
) |
o_base64_decode - Base64 decode
src | Data to be decoded |
len | Length of the data to be decoded |
out | Pointer to output variable |
out_len | Pointer to output length variable |
The nul terminator is not included in out_len.
o_base64_decode - Base64 decode : Data to be decoded : Length of the data to be decoded : Pointer to output variable : Pointer to output length variable Returns: 1 on success, 0 on failure
The nul terminator is not included in out_len.
int o_base64url_encode | ( | const unsigned char * | src, |
size_t | len, | ||
unsigned char * | out, | ||
size_t * | out_len | ||
) |
o_base64url_encode - Base64url encode (url format)
src | Data to be encoded |
len | Length of the data to be encoded |
out | Pointer to output variable |
out_len | Pointer to output length variable |
The nul terminator is not included in out_len.
o_base64url_encode - Base64url encode (url format) : Data to be encoded : Length of the data to be encoded : Pointer to output variable : Pointer to output length variable Returns: 1 on success, 0 on failure
The nul terminator is not included in out_len.
int o_base64url_decode | ( | const unsigned char * | src, |
size_t | len, | ||
unsigned char * | out, | ||
size_t * | out_len | ||
) |
o_base64url_decode - Base64 decode (url format)
src | Data to be decoded |
len | Length of the data to be decoded |
out | Pointer to output variable |
out_len | Pointer to output length variable |
The nul terminator is not included in out_len.
o_base64url_decode - Base64 decode (url format) : Data to be decoded : Length of the data to be decoded : Pointer to output variable : Pointer to output length variable Returns: 1 on success, 0 on failure
The nul terminator is not included in out_len.
int o_base64url_2_base64 | ( | const unsigned char * | src, |
size_t | len, | ||
unsigned char * | out, | ||
size_t * | out_len | ||
) |
o_base64url_2_base64 - Convert a base64 url format to base64 format
src | Data to be decoded |
len | Length of the data to be decoded |
out | Pointer to output variable |
out_len | Pointer to output length variable |
The nul terminator is not included in out_len. out must be at least len+2
o_base64url_2_base64 - Convert a base64 url format to base64 format : Data to be decoded : Length of the data to be decoded : Pointer to output variable : Pointer to output length variable Returns: 1 on success, 0 on failure
The nul terminator is not included in out_len. out must be at least len+2
int o_base64_2_base64url | ( | const unsigned char * | src, |
size_t | len, | ||
unsigned char * | out, | ||
size_t * | out_len | ||
) |
o_base64url_2_base64 - Convert a base64 format to base64 url format
src | Data to be decoded |
len | Length of the data to be decoded |
out | Pointer to output variable |
out_len | Pointer to output length variable |
The nul terminator is not included in out_len. out must be at least len+2
o_base64url_2_base64 - Convert a base64 format to base64 url format : Data to be decoded : Length of the data to be decoded : Pointer to output variable : Pointer to output length variable Returns: 1 on success, 0 on failure
The nul terminator is not included in out_len. out must be at least len+2