Mercurial > hg > php_nacl
comparison php_nacl.h @ 10:130a6a714966 default tip
Use libsodium instead of libnacl
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Thu, 10 Jul 2014 16:34:04 +0000 |
parents | ded86f4d6275 |
children |
comparison
equal
deleted
inserted
replaced
9:765303f4f2da | 10:130a6a714966 |
---|---|
3 | 3 |
4 #ifdef ZTS | 4 #ifdef ZTS |
5 #include "TSRM.h" | 5 #include "TSRM.h" |
6 #endif | 6 #endif |
7 | 7 |
8 #define PHP_NACL_VERSION "1.0" | 8 #define PHP_NACL_VERSION "1.2" |
9 #define PHP_NACL_EXTNAME "nacl" | 9 #define PHP_NACL_EXTNAME "nacl" |
10 | 10 |
11 PHP_MINIT_FUNCTION(nacl); | 11 PHP_MINIT_FUNCTION(nacl); |
12 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305); | 12 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305); |
13 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_open); | 13 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_open); |
17 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_open_afternm); | 17 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_open_afternm); |
18 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_keypair); | 18 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_keypair); |
19 PHP_FUNCTION(nacl_crypto_sign_edwards25519sha512batch); | 19 PHP_FUNCTION(nacl_crypto_sign_edwards25519sha512batch); |
20 PHP_FUNCTION(nacl_crypto_sign_edwards25519sha512batch_open); | 20 PHP_FUNCTION(nacl_crypto_sign_edwards25519sha512batch_open); |
21 PHP_FUNCTION(nacl_crypto_sign_edwards25519sha512batch_keypair); | 21 PHP_FUNCTION(nacl_crypto_sign_edwards25519sha512batch_keypair); |
22 PHP_FUNCTION(nacl_crypto_sign_ed25519); | |
23 PHP_FUNCTION(nacl_crypto_sign_ed25519_open); | |
24 PHP_FUNCTION(nacl_crypto_sign_ed25519_keypair); | |
22 | 25 |
23 extern zend_module_entry nacl_module_entry; | 26 extern zend_module_entry nacl_module_entry; |
24 #define phpext_module_ptr &nacl_module_entry | 27 #define phpext_module_ptr &nacl_module_entry |
25 | 28 |
26 #endif | 29 #endif |