crypto_stream_salsa20.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef crypto_stream_salsa20_H
  2. #define crypto_stream_salsa20_H
  3. #define crypto_stream_salsa20_ref_KEYBYTES 32
  4. #define crypto_stream_salsa20_ref_NONCEBYTES 8
  5. #ifdef __cplusplus
  6. #include <string>
  7. extern std::string crypto_stream_salsa20_ref(size_t,const std::string &,const std::string &);
  8. extern std::string crypto_stream_salsa20_ref_xor(const std::string &,const std::string &,const std::string &);
  9. extern "C" {
  10. #endif
  11. extern int crypto_stream_salsa20_ref(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
  12. extern int crypto_stream_salsa20_ref_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
  13. extern int crypto_stream_salsa20_ref_beforenm(unsigned char *,const unsigned char *);
  14. extern int crypto_stream_salsa20_ref_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
  15. extern int crypto_stream_salsa20_ref_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #define crypto_stream_salsa20 crypto_stream_salsa20_ref
  20. #define crypto_stream_salsa20_xor crypto_stream_salsa20_ref_xor
  21. #define crypto_stream_salsa20_beforenm crypto_stream_salsa20_ref_beforenm
  22. #define crypto_stream_salsa20_afternm crypto_stream_salsa20_ref_afternm
  23. #define crypto_stream_salsa20_xor_afternm crypto_stream_salsa20_ref_xor_afternm
  24. #define crypto_stream_salsa20_KEYBYTES crypto_stream_salsa20_ref_KEYBYTES
  25. #define crypto_stream_salsa20_NONCEBYTES crypto_stream_salsa20_ref_NONCEBYTES
  26. #define crypto_stream_salsa20_BEFORENMBYTES crypto_stream_salsa20_ref_BEFORENMBYTES
  27. #define crypto_stream_salsa20_IMPLEMENTATION "crypto_stream/salsa20/ref"
  28. #ifndef crypto_stream_salsa20_ref_VERSION
  29. #define crypto_stream_salsa20_ref_VERSION "-"
  30. #endif
  31. #define crypto_stream_salsa20_VERSION crypto_stream_salsa20_ref_VERSION
  32. #endif