lokinet/crypto/salsa20/stream_salsa20.h

17 lines
497 B
C
Raw Normal View History

2018-10-23 11:29:37 +00:00
#ifndef stream_salsa20_H
#define stream_salsa20_H
#include <stdint.h>
2019-08-31 18:54:19 +00:00
typedef struct crypto_stream_salsa20_implementation
{
int (*stream)(unsigned char *c, unsigned long long clen,
const unsigned char *n, const unsigned char *k);
int (*stream_xor_ic)(unsigned char *c, const unsigned char *m,
unsigned long long mlen, const unsigned char *n,
uint64_t ic, const unsigned char *k);
2018-10-23 11:29:37 +00:00
} crypto_stream_salsa20_implementation;
#endif