crypto_stream_salsa20.h 482 B

123456789101112131415161718192021222324252627
  1. /*
  2. D. J. Bernstein
  3. Public domain.
  4. */
  5. #ifndef CRYPTO_STREAM_H
  6. #define CRYPTO_STREAM_H
  7. #define crypto_stream_salsa20_KEYBYTES 32
  8. #define crypto_stream_salsa20_NONCEBYTES 8
  9. #ifdef __cplusplus
  10. #include <string>
  11. extern "C" {
  12. #endif
  13. extern
  14. int crypto_stream_salsa20_amd64_xmm6(
  15. unsigned char *c,unsigned long long clen,
  16. const unsigned char *n,
  17. const unsigned char *k
  18. );
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #define crypto_stream_salsa20 crypto_stream_salsa20_amd64_xmm6
  23. #endif