2017-03-28 01:42:12 -07:00
|
|
|
#ifndef _CRYPTO_H_
|
|
|
|
#define _CRYPTO_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2017-04-05 09:44:59 -07:00
|
|
|
uint32_t hash(const char* str);
|
|
|
|
char* base64_encode(const char* str);
|
|
|
|
char* base64_decode(const char* str);
|
2017-05-21 03:16:45 -07:00
|
|
|
int sha1(char* str, unsigned char buff[20]);
|
|
|
|
|
|
|
|
#ifdef VLCRYPTO_EXPOSE_LIBRARY_FUNCTIONS
|
|
|
|
/* defined in base64.c */
|
|
|
|
int base64_lencode(const char* source, size_t sourcelen, char *target, size_t targetlen);
|
|
|
|
size_t base64_ldecode(const char* source, char *target, size_t targetlen);
|
|
|
|
#endif
|
2017-03-28 01:42:12 -07:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|