Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
base64.c File Reference
#include <stdint.h>
#include <stdlib.h>

Functions

void build_decoding_table ()
 
void base64_cleanup ()
 
char * ksn_base64_encode (const unsigned char *data, size_t input_length, size_t *output_length)
 Base64 encode. More...
 
unsigned char * ksn_base64_decode (const char *data, size_t input_length, size_t *output_length)
 Base64decode. More...
 

Detailed Description

Author
Kirill Scherba kiril.nosp@m.l@sc.nosp@m.herba.nosp@m..ru

Created on March 7, 2016, 4:40 AM

Function Documentation

void base64_cleanup ( )

References free().

void build_decoding_table ( )

References malloc().

Referenced by ksn_base64_decode().

unsigned char* ksn_base64_decode ( const char *  data,
size_t  input_length,
size_t *  output_length 
)

Base64decode.

Parameters
dataInput encoded data
input_lengthInput data length
output_lengthOutput data length
Returns
Decoded data, should be free after use

References build_decoding_table(), and malloc().

char* ksn_base64_encode ( const unsigned char *  data,
size_t  input_length,
size_t *  output_length 
)

Base64 encode.

Parameters
[in]dataInput data
[in]input_lengthInput data length
[out]output_lengthOutput data length
Returns
Encoded data, should be free after use

References malloc().