diff options
Diffstat (limited to 'src/sp_crypt.h')
| -rw-r--r-- | src/sp_crypt.h | 17 |
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 | |||
| 13 | static void generate_key(unsigned char *key); | ||
| 14 | int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hask_key); | ||
| 15 | zend_string *encrypt_zval(char *data, unsigned long long data_len); | ||
| 16 | |||
| 17 | #endif /*__SP_CRYPT */ \ No newline at end of file | ||
