Mercurial > hg > php_nacl
annotate 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 |
rev | line source |
---|---|
0 | 1 #ifndef PHP_NACL_H |
2 #define PHP_NACL_H 1 | |
3 | |
4 #ifdef ZTS | |
5 #include "TSRM.h" | |
6 #endif | |
7 | |
10 | 8 #define PHP_NACL_VERSION "1.2" |
0 | 9 #define PHP_NACL_EXTNAME "nacl" |
10 | |
11 PHP_MINIT_FUNCTION(nacl); | |
12 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305); | |
13 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_open); | |
14 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_getpublickey); | |
15 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_beforenm); | |
16 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_afternm); | |
17 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_open_afternm); | |
6
ded86f4d6275
Added keypair generation functions (with random data input)
Ivo Smits <Ivo@UCIS.nl>
parents:
5
diff
changeset
|
18 PHP_FUNCTION(nacl_crypto_box_curve25519xsalsa20poly1305_keypair); |
5
df71d49a6f98
Fixes to support crypto_sign_edwards25519sha512batch
Ivo Smits <Ivo@UCIS.nl>
parents:
4
diff
changeset
|
19 PHP_FUNCTION(nacl_crypto_sign_edwards25519sha512batch); |
df71d49a6f98
Fixes to support crypto_sign_edwards25519sha512batch
Ivo Smits <Ivo@UCIS.nl>
parents:
4
diff
changeset
|
20 PHP_FUNCTION(nacl_crypto_sign_edwards25519sha512batch_open); |
6
ded86f4d6275
Added keypair generation functions (with random data input)
Ivo Smits <Ivo@UCIS.nl>
parents:
5
diff
changeset
|
21 PHP_FUNCTION(nacl_crypto_sign_edwards25519sha512batch_keypair); |
10 | 22 PHP_FUNCTION(nacl_crypto_sign_ed25519); |
23 PHP_FUNCTION(nacl_crypto_sign_ed25519_open); | |
24 PHP_FUNCTION(nacl_crypto_sign_ed25519_keypair); | |
0 | 25 |
26 extern zend_module_entry nacl_module_entry; | |
27 #define phpext_module_ptr &nacl_module_entry | |
28 | |
29 #endif |