summaryrefslogtreecommitdiff
path: root/src/sp_crypt.h
blob: 0960fbf044db0bc45e1697c1ec855d6beb7bd78b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __SP_CRYPT
#define __SP_CRYPT

#include "SAPI.h"
#include "tweetnacl.h"

#include "sp_utils.h"

#include "ext/hash/php_hash.h"
#include "ext/hash/php_hash_sha.h"
#include "ext/standard/base64.h"

void generate_key(unsigned char *key);
int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hash_key);
zend_string *encrypt_zval(zend_string *);

#endif /*__SP_CRYPT */