Mercurial > hg > php_nacl
view nacl_crypto_box.h @ 0:96c976fb3c3d
Initial commit
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sun, 27 Feb 2011 18:58:38 +0100 |
parents | |
children |
line wrap: on
line source
#ifndef nacl_crypto_box_H #define nacl_crypto_box_H #define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32 #define crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES 32 #define crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES 32 #define crypto_box_curve25519xsalsa20poly1305_NONCEBYTES 24 #define crypto_box_curve25519xsalsa20poly1305_ZEROBYTES 32 #define crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES 16 extern int crypto_box_curve25519xsalsa20poly1305(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); extern int crypto_box_curve25519xsalsa20poly1305_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); extern int crypto_box_curve25519xsalsa20poly1305_keypair(unsigned char *,unsigned char *); extern int crypto_box_curve25519xsalsa20poly1305_beforenm(unsigned char *,const unsigned char *,const unsigned char *); extern int crypto_box_curve25519xsalsa20poly1305_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); extern int crypto_box_curve25519xsalsa20poly1305_open_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); #define crypto_scalarmult_curve25519_BYTES 32 #define crypto_scalarmult_curve25519_SCALARBYTES 32 extern int crypto_scalarmult_curve25519(unsigned char *,const unsigned char *,const unsigned char *); extern int crypto_scalarmult_curve25519_base(unsigned char *,const unsigned char *); #endif