2018-10-23 11:29:37 +00:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <sodium/utils.h>
|
2018-10-23 17:40:27 +00:00
|
|
|
#ifdef __amd64__
|
2018-10-23 11:29:37 +00:00
|
|
|
#include "../stream_salsa20.h"
|
|
|
|
#include "salsa20_xmm6.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
extern int
|
|
|
|
stream_salsa20_xmm6(unsigned char *c, unsigned long long clen,
|
|
|
|
const unsigned char *n, const unsigned char *k);
|
|
|
|
|
|
|
|
extern int
|
|
|
|
stream_salsa20_xmm6_xor_ic(unsigned char *c, const unsigned char *m,
|
|
|
|
unsigned long long mlen, const unsigned char *n,
|
|
|
|
uint64_t ic, const unsigned char *k);
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct crypto_stream_salsa20_implementation
|
|
|
|
crypto_stream_salsa20_xmm6_implementation = {
|
|
|
|
SODIUM_C99(.stream =) stream_salsa20_xmm6,
|
|
|
|
SODIUM_C99(.stream_xor_ic =) stream_salsa20_xmm6_xor_ic,
|
|
|
|
};
|
2018-10-23 17:40:27 +00:00
|
|
|
#endif
|