|
|
@ -8,6 +8,7 @@ |
|
|
|
#include "crypto_scalarmult_curve25519.h" |
|
|
|
#include "crypto_secretbox_xsalsa20poly1305.h" |
|
|
|
#include "crypto_sign_ed25519.h" |
|
|
|
#include "crypto_stream_salsa20.h" |
|
|
|
#include "crypto_stream_xsalsa20.h" |
|
|
|
#include "crypto_verify_16.h" |
|
|
|
#include "crypto_verify_32.h" |
|
|
@ -243,6 +244,48 @@ crypto_onetimeauth_poly1305_ref(unsigned char *out, |
|
|
|
return crypto_onetimeauth_poly1305(out, in, inlen, k); |
|
|
|
} |
|
|
|
|
|
|
|
#undef crypto_stream_salsa20_amd64_xmm6 |
|
|
|
SODIUM_EXPORT int |
|
|
|
crypto_stream_salsa20_amd64_xmm6(unsigned char *c, |
|
|
|
unsigned long long clen, |
|
|
|
const unsigned char *n, |
|
|
|
const unsigned char *k) |
|
|
|
{ |
|
|
|
return crypto_stream_salsa20(c, clen, n, k); |
|
|
|
} |
|
|
|
|
|
|
|
#undef crypto_stream_salsa20_ref |
|
|
|
SODIUM_EXPORT int |
|
|
|
crypto_stream_salsa20_ref(unsigned char *c, |
|
|
|
unsigned long long clen, |
|
|
|
const unsigned char *n, |
|
|
|
const unsigned char *k) |
|
|
|
{ |
|
|
|
return crypto_stream_salsa20(c, clen, n, k); |
|
|
|
} |
|
|
|
|
|
|
|
#undef crypto_stream_salsa20_amd64_xmm6_xor |
|
|
|
SODIUM_EXPORT int |
|
|
|
crypto_stream_salsa20_amd64_xmm6_xor(unsigned char *c, |
|
|
|
const unsigned char *m, |
|
|
|
unsigned long long mlen, |
|
|
|
const unsigned char *n, |
|
|
|
const unsigned char *k) |
|
|
|
{ |
|
|
|
return crypto_stream_salsa20_xor(c, m, mlen, n, k); |
|
|
|
} |
|
|
|
|
|
|
|
#undef crypto_stream_salsa20_ref_xor |
|
|
|
SODIUM_EXPORT int |
|
|
|
crypto_stream_salsa20_ref_xor(unsigned char *c, |
|
|
|
const unsigned char *m, |
|
|
|
unsigned long long mlen, |
|
|
|
const unsigned char *n, |
|
|
|
const unsigned char *k) |
|
|
|
{ |
|
|
|
return crypto_stream_salsa20_xor(c, m, mlen, n, k); |
|
|
|
} |
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
} |
|
|
|
#endif |
|
|
|