crypto_core_salsa2012.h 852 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef crypto_core_salsa2012_H
  2. #define crypto_core_salsa2012_H
  3. #include <stddef.h>
  4. #include "export.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #define crypto_core_salsa2012_OUTPUTBYTES 64U
  9. SODIUM_EXPORT
  10. size_t crypto_core_salsa2012_outputbytes(void);
  11. #define crypto_core_salsa2012_INPUTBYTES 16U
  12. SODIUM_EXPORT
  13. size_t crypto_core_salsa2012_inputbytes(void);
  14. #define crypto_core_salsa2012_KEYBYTES 32U
  15. SODIUM_EXPORT
  16. size_t crypto_core_salsa2012_keybytes(void);
  17. #define crypto_core_salsa2012_CONSTBYTES 16U
  18. SODIUM_EXPORT
  19. size_t crypto_core_salsa2012_constbytes(void);
  20. SODIUM_EXPORT
  21. int crypto_core_salsa2012(unsigned char *out, const unsigned char *in,
  22. const unsigned char *k, const unsigned char *c)
  23. __attribute__ ((nonnull(1, 2, 3)));
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif