crypto_core_hsalsa20.h 840 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef crypto_core_hsalsa20_H
  2. #define crypto_core_hsalsa20_H
  3. #include <stddef.h>
  4. #include "export.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #define crypto_core_hsalsa20_OUTPUTBYTES 32U
  9. SODIUM_EXPORT
  10. size_t crypto_core_hsalsa20_outputbytes(void);
  11. #define crypto_core_hsalsa20_INPUTBYTES 16U
  12. SODIUM_EXPORT
  13. size_t crypto_core_hsalsa20_inputbytes(void);
  14. #define crypto_core_hsalsa20_KEYBYTES 32U
  15. SODIUM_EXPORT
  16. size_t crypto_core_hsalsa20_keybytes(void);
  17. #define crypto_core_hsalsa20_CONSTBYTES 16U
  18. SODIUM_EXPORT
  19. size_t crypto_core_hsalsa20_constbytes(void);
  20. SODIUM_EXPORT
  21. int crypto_core_hsalsa20(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