crypto_core_salsa208.h 1008 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef crypto_core_salsa208_H
  2. #define crypto_core_salsa208_H
  3. #include <stddef.h>
  4. #include "export.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #define crypto_core_salsa208_OUTPUTBYTES 64U
  9. SODIUM_EXPORT
  10. size_t crypto_core_salsa208_outputbytes(void)
  11. __attribute__ ((deprecated));
  12. #define crypto_core_salsa208_INPUTBYTES 16U
  13. SODIUM_EXPORT
  14. size_t crypto_core_salsa208_inputbytes(void)
  15. __attribute__ ((deprecated));
  16. #define crypto_core_salsa208_KEYBYTES 32U
  17. SODIUM_EXPORT
  18. size_t crypto_core_salsa208_keybytes(void)
  19. __attribute__ ((deprecated));
  20. #define crypto_core_salsa208_CONSTBYTES 16U
  21. SODIUM_EXPORT
  22. size_t crypto_core_salsa208_constbytes(void)
  23. __attribute__ ((deprecated));
  24. SODIUM_EXPORT
  25. int crypto_core_salsa208(unsigned char *out, const unsigned char *in,
  26. const unsigned char *k, const unsigned char *c)
  27. __attribute__ ((nonnull(1, 2, 3)));
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif