Robot
Move a little robot.
base64.h
Go to the documentation of this file.
1#include <stddef.h>
2
19size_t base64(const char* signed_data, size_t len_data, char* res, size_t res_len);
20
33size_t base64_str(const char* s, char* res, size_t res_len);
34
46char* open_and_read(const char* path, size_t* file_size_out);
47
58char* base64_alloc(const char* data, size_t size, size_t* res_size_out);
59
69char* base64_from_path(const char* path, size_t* res_size_out);
size_t base64(const char *signed_data, size_t len_data, char *res, size_t res_len)
Implementation of base64 algorithm for binaries in general.
char * open_and_read(const char *path, size_t *file_size_out)
Open and read files.
char * base64_alloc(const char *data, size_t size, size_t *res_size_out)
Allocates memory and applies base64 algorithm.
size_t base64_str(const char *s, char *res, size_t res_len)
Implementation of base64 algorithm for strings.
char * base64_from_path(const char *path, size_t *res_size_out)
Uses open_and_read() and base64_alloc() to perform base64 algorithm.