1 
2 #ifndef __SP_COOKIE_ENCRYPTION
3 #define __SP_COOKIE_ENCRYPTION
4 
5 #include "SAPI.h"
6 #include "tweetnacl.h"
7 
8 #include "sp_utils.h"
9 
10 #include "ext/hash/php_hash.h"
11 #include "ext/hash/php_hash_sha.h"
12 #include "ext/standard/base64.h"
13 
14 #define SAMESITE_COOKIE_FORMAT "; samesite="
15 
16 int hook_cookies(void);
17 int decrypt_cookie(zval *pDest, int num_args, va_list args,
18                    zend_hash_key *hash_key);
19 
20 #endif /* __SP_COOKIE_ENCRYPTION */
21