summaryrefslogtreecommitdiff
path: root/src/sp_crypt.h
diff options
context:
space:
mode:
authorkkadosh2018-05-15 15:08:34 +0000
committerjvoisin2018-05-15 15:08:34 +0000
commite0c2ca8624ebbf1a2c6ff9cff3d1284236e327e2 (patch)
tree3ec1f2c77a1d0654d5a34654f1c4bb3a9eacaf86 /src/sp_crypt.h
parent41b8db89d5f50aadad91d2b0fd9861017b58bb16 (diff)
Refactor the encryption process to extract encrypt/decrypt functions (#176)
Refactor the encryption process to extract encrypt/decrypt functions
Diffstat (limited to 'src/sp_crypt.h')
-rw-r--r--src/sp_crypt.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/sp_crypt.h b/src/sp_crypt.h
new file mode 100644
index 0000000..1852a0a
--- /dev/null
+++ b/src/sp_crypt.h
@@ -0,0 +1,17 @@
1#ifndef __SP_CRYPT
2#define __SP_CRYPT
3
4#include "SAPI.h"
5#include "tweetnacl.h"
6
7#include "sp_utils.h"
8
9#include "ext/hash/php_hash.h"
10#include "ext/hash/php_hash_sha.h"
11#include "ext/standard/base64.h"
12
13static void generate_key(unsigned char *key);
14int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hask_key);
15zend_string *encrypt_zval(char *data, unsigned long long data_len);
16
17#endif /*__SP_CRYPT */ \ No newline at end of file