libsodium (1.0.19)

(root)/
include/
sodium/
crypto_core_hchacha20.h
       1  #ifndef crypto_core_hchacha20_H
       2  #define crypto_core_hchacha20_H
       3  
       4  #include <stddef.h>
       5  #include "export.h"
       6  
       7  #ifdef __cplusplus
       8  extern "C" {
       9  #endif
      10  
      11  #define crypto_core_hchacha20_OUTPUTBYTES 32U
      12  SODIUM_EXPORT
      13  size_t crypto_core_hchacha20_outputbytes(void);
      14  
      15  #define crypto_core_hchacha20_INPUTBYTES 16U
      16  SODIUM_EXPORT
      17  size_t crypto_core_hchacha20_inputbytes(void);
      18  
      19  #define crypto_core_hchacha20_KEYBYTES 32U
      20  SODIUM_EXPORT
      21  size_t crypto_core_hchacha20_keybytes(void);
      22  
      23  #define crypto_core_hchacha20_CONSTBYTES 16U
      24  SODIUM_EXPORT
      25  size_t crypto_core_hchacha20_constbytes(void);
      26  
      27  SODIUM_EXPORT
      28  int crypto_core_hchacha20(unsigned char *out, const unsigned char *in,
      29                            const unsigned char *k, const unsigned char *c)
      30              __attribute__ ((nonnull(1, 2, 3)));
      31  
      32  #ifdef __cplusplus
      33  }
      34  #endif
      35  
      36  #endif