libtc  20160415
Threshold Cryptography functions library
Functions
algorithms_base64.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "tc.h"
#include "tc_internal.h"

Go to the source code of this file.

Functions

char * tc_bytes_b64 (const bytes_t *b)
 
bytes_ttc_b64_bytes (const char *b64)
 

Function Documentation

bytes_t* tc_b64_bytes ( const char *  s)
Parameters
[in]sa C string in the Base64 format.
Returns
a bytes_t structure with the binary data in s.

Definition at line 144 of file algorithms_base64.c.

char* tc_bytes_b64 ( const bytes_t b)
Parameters
[in]ba bytes_t structure.
Returns
a C string with the data of bytes serialized in the Base64 format.

Definition at line 140 of file algorithms_base64.c.