mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Change crypto to ssl
This commit is contained in:
parent
f7a85bfc7c
commit
48168cb9ac
5 changed files with 173 additions and 36 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue