2018-10-23 12:48:36 +00:00
|
|
|
#ifndef crypto_core_salsa20_H
|
|
|
|
#define crypto_core_salsa20_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "export.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2019-08-31 18:54:19 +00:00
|
|
|
extern "C"
|
|
|
|
{
|
2018-10-23 12:48:36 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define crypto_core_salsa20_OUTPUTBYTES 64U
|
2019-08-31 18:54:19 +00:00
|
|
|
SODIUM_EXPORT
|
|
|
|
size_t
|
|
|
|
crypto_core_salsa20_outputbytes(void);
|
2018-10-23 12:48:36 +00:00
|
|
|
|
|
|
|
#define crypto_core_salsa20_INPUTBYTES 16U
|
2019-08-31 18:54:19 +00:00
|
|
|
SODIUM_EXPORT
|
|
|
|
size_t
|
|
|
|
crypto_core_salsa20_inputbytes(void);
|
2018-10-23 12:48:36 +00:00
|
|
|
|
|
|
|
#define crypto_core_salsa20_KEYBYTES 32U
|
2019-08-31 18:54:19 +00:00
|
|
|
SODIUM_EXPORT
|
|
|
|
size_t
|
|
|
|
crypto_core_salsa20_keybytes(void);
|
2018-10-23 12:48:36 +00:00
|
|
|
|
|
|
|
#define crypto_core_salsa20_CONSTBYTES 16U
|
2019-08-31 18:54:19 +00:00
|
|
|
SODIUM_EXPORT
|
|
|
|
size_t
|
|
|
|
crypto_core_salsa20_constbytes(void);
|
|
|
|
|
|
|
|
SODIUM_EXPORT
|
|
|
|
int
|
|
|
|
crypto_core_salsa20(unsigned char *out, const unsigned char *in,
|
|
|
|
const unsigned char *k, const unsigned char *c);
|
2018-10-23 12:48:36 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|