0
|
1 #ifndef nacl_crypto_box_H |
|
2 #define nacl_crypto_box_H |
|
3 |
|
4 #define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32 |
|
5 #define crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES 32 |
|
6 #define crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES 32 |
|
7 #define crypto_box_curve25519xsalsa20poly1305_NONCEBYTES 24 |
|
8 #define crypto_box_curve25519xsalsa20poly1305_ZEROBYTES 32 |
|
9 #define crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES 16 |
|
10 extern int crypto_box_curve25519xsalsa20poly1305(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); |
|
11 extern int crypto_box_curve25519xsalsa20poly1305_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); |
|
12 extern int crypto_box_curve25519xsalsa20poly1305_keypair(unsigned char *,unsigned char *); |
|
13 extern int crypto_box_curve25519xsalsa20poly1305_beforenm(unsigned char *,const unsigned char *,const unsigned char *); |
|
14 extern int crypto_box_curve25519xsalsa20poly1305_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); |
|
15 extern int crypto_box_curve25519xsalsa20poly1305_open_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); |
|
16 |
|
17 #define crypto_scalarmult_curve25519_BYTES 32 |
|
18 #define crypto_scalarmult_curve25519_SCALARBYTES 32 |
|
19 extern int crypto_scalarmult_curve25519(unsigned char *,const unsigned char *,const unsigned char *); |
|
20 extern int crypto_scalarmult_curve25519_base(unsigned char *,const unsigned char *); |
|
21 |
|
22 #endif |