Mercurial > hg > php_nacl
annotate php_nacl.h @ 9:765303f4f2da
Attempt to fix randombytes.c for unpatched NaCl
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Thu, 14 Jul 2011 16:49:21 +0200 |
parents | ded86f4d6275 |
children | 130a6a714966 |
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 | |
8 #define PHP_NACL_VERSION "1.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); |
0 | 22 |
23 extern zend_module_entry nacl_module_entry; | |
24 #define phpext_module_ptr &nacl_module_entry | |
25 | |
26 #endif |