| 1 | #include <cross_platform.h> |
| 2 | |
| 3 | #ifndef crypto_stream_salsa20_H |
| 4 | #define crypto_stream_salsa20_H |
| 5 | |
| 6 | #define crypto_stream_salsa20_ref_KEYBYTES 32 |
| 7 | #define crypto_stream_salsa20_ref_NONCEBYTES 8 |
| 8 | |
| 9 | #ifdef __cplusplus |
| 10 | extern "C" { |
| 11 | #endif |
| 12 | extern int INTERFACE crypto_stream_salsa20_ref(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); |
| 13 | extern int INTERFACE crypto_stream_salsa20_ref_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); |
| 14 | #ifdef __cplusplus |
| 15 | } |
| 16 | #endif |
| 17 | |
| 18 | #define crypto_stream_salsa20 crypto_stream_salsa20_ref |
| 19 | #define crypto_stream_salsa20_xor crypto_stream_salsa20_ref_xor |
| 20 | #define crypto_stream_salsa20_KEYBYTES crypto_stream_salsa20_ref_KEYBYTES |
| 21 | #define crypto_stream_salsa20_NONCEBYTES crypto_stream_salsa20_ref_NONCEBYTES |
| 22 | #define crypto_stream_salsa20_IMPLEMENTATION "crypto_stream/salsa20/ref" |
| 23 | #ifndef crypto_stream_salsa20_ref_VERSION |
| 24 | #define crypto_stream_salsa20_ref_VERSION "-" |
| 25 | #endif |
| 26 | #define crypto_stream_salsa20_VERSION crypto_stream_salsa20_ref_VERSION |
| 27 | |
| 28 | #endif |