Change crypto to ssl

This commit is contained in:
PolynomialDivision 2017-08-20 17:50:11 +02:00
parent f7a85bfc7c
commit 48168cb9ac
5 changed files with 173 additions and 36 deletions

View file

@ -3,11 +3,17 @@
#include <stdlib.h>
char *base_64(const unsigned char *input, int length);
char *unbase_64(unsigned char *input, int length);
void gcrypt_init();
void gcrypt_set_key_and_iv(char *key, char *iv);
char *gcrypt_encrypt_msg(char *msg, size_t msg_length);
//char *gcrypt_encrypt_msg(char *msg, size_t msg_length);
char *gcrypt_encrypt_msg(char *msg, size_t msg_length, int* out_length);
char *gcrypt_decrypt_msg(char *msg, size_t msg_length);
@ -24,5 +30,10 @@ void build_decoding_table();
void base64_cleanup();
int Base64decode_len(const char *bufcoded);
int Base64encode_len(int len);
int Base64encode(char *encoded, const char *string, int len);
int Base64decode(char *bufplain, const char *bufcoded);
#endif //DAWN_CRYPTO_H