EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
Functions
base64.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned char * base64_encode (const unsigned char *src, size_t len, size_t *out_len)
 
unsigned char * base64_decode (const unsigned char *src, size_t len, size_t *out_len)
 
unsigned char * base64_url_encode (const unsigned char *src, size_t len, size_t *out_len, int add_pad)
 
unsigned char * base64_url_decode (const unsigned char *src, size_t len, size_t *out_len)
 

Function Documentation

◆ base64_decode()

unsigned char* base64_decode ( const unsigned char *  src,
size_t  len,
size_t *  out_len 
)

base64_decode - Base64 decode @src: Data to be decoded @len: Length of the data to be decoded @out_len: Pointer to output length variable Returns: Allocated buffer of out_len bytes of decoded data, or NULL on failure

Caller is responsible for freeing the returned buffer.

◆ base64_encode()

unsigned char* base64_encode ( const unsigned char *  src,
size_t  len,
size_t *  out_len 
)

base64_encode - Base64 encode @src: Data to be encoded @len: Length of the data to be encoded @out_len: Pointer to output length variable, or NULL if not used Returns: Allocated buffer of out_len bytes of encoded data, or NULL on failure

Caller is responsible for freeing the returned buffer. Returned buffer is nul terminated to make it easier to use as a C string. The nul terminator is not included in out_len.

◆ base64_url_decode()

unsigned char* base64_url_decode ( const unsigned char *  src,
size_t  len,
size_t *  out_len 
)

◆ base64_url_encode()

unsigned char* base64_url_encode ( const unsigned char *  src,
size_t  len,
size_t *  out_len,
int  add_pad 
)