mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-20 10:37:24 -07:00
Add SODIUM_EXPORT to all functions that need to be visible.
This commit is contained in:
parent
6db3177585
commit
61c4f21c97
@ -8,6 +8,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int sodium_init(void);
|
int sodium_init(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -11,17 +11,22 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define crypto_auth_BYTES crypto_auth_hmacsha512256_BYTES
|
#define crypto_auth_BYTES crypto_auth_hmacsha512256_BYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_auth_bytes(void);
|
size_t crypto_auth_bytes(void);
|
||||||
|
|
||||||
#define crypto_auth_KEYBYTES crypto_auth_hmacsha512256_KEYBYTES
|
#define crypto_auth_KEYBYTES crypto_auth_hmacsha512256_KEYBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_auth_keybytes(void);
|
size_t crypto_auth_keybytes(void);
|
||||||
|
|
||||||
#define crypto_auth_PRIMITIVE "hmacsha512256"
|
#define crypto_auth_PRIMITIVE "hmacsha512256"
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *crypto_auth_primitive(void);
|
const char *crypto_auth_primitive(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_auth(unsigned char *out, const unsigned char *in,
|
int crypto_auth(unsigned char *out, const unsigned char *in,
|
||||||
unsigned long long inlen, const unsigned char *k);
|
unsigned long long inlen, const unsigned char *k);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_auth_verify(const unsigned char *h, const unsigned char *in,
|
int crypto_auth_verify(const unsigned char *h, const unsigned char *in,
|
||||||
unsigned long long inlen,const unsigned char *k);
|
unsigned long long inlen,const unsigned char *k);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -10,7 +10,10 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_auth_hmacsha256_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
|
int crypto_auth_hmacsha256_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_auth_hmacsha256_ref_verify(const unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
|
int crypto_auth_hmacsha256_ref_verify(const unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -10,7 +10,10 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_auth_hmacsha512256_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
|
int crypto_auth_hmacsha512256_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_auth_hmacsha512256_ref_verify(const unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
|
int crypto_auth_hmacsha512256_ref_verify(const unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -11,46 +11,60 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define crypto_box_PUBLICKEYBYTES crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES
|
#define crypto_box_PUBLICKEYBYTES crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_box_publickeybytes(void);
|
size_t crypto_box_publickeybytes(void);
|
||||||
|
|
||||||
#define crypto_box_SECRETKEYBYTES crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES
|
#define crypto_box_SECRETKEYBYTES crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_box_secretkeybytes(void);
|
size_t crypto_box_secretkeybytes(void);
|
||||||
|
|
||||||
#define crypto_box_BEFORENMBYTES crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES
|
#define crypto_box_BEFORENMBYTES crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_box_beforenmbytes(void);
|
size_t crypto_box_beforenmbytes(void);
|
||||||
|
|
||||||
#define crypto_box_NONCEBYTES crypto_box_curve25519xsalsa20poly1305_NONCEBYTES
|
#define crypto_box_NONCEBYTES crypto_box_curve25519xsalsa20poly1305_NONCEBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_box_noncebytes(void);
|
size_t crypto_box_noncebytes(void);
|
||||||
|
|
||||||
#define crypto_box_ZEROBYTES crypto_box_curve25519xsalsa20poly1305_ZEROBYTES
|
#define crypto_box_ZEROBYTES crypto_box_curve25519xsalsa20poly1305_ZEROBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_box_zerobytes(void);
|
size_t crypto_box_zerobytes(void);
|
||||||
|
|
||||||
#define crypto_box_BOXZEROBYTES crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES
|
#define crypto_box_BOXZEROBYTES crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_box_boxzerobytes(void);
|
size_t crypto_box_boxzerobytes(void);
|
||||||
|
|
||||||
#define crypto_box_MACBYTES crypto_box_curve25519xsalsa20poly1305_MACBYTES
|
#define crypto_box_MACBYTES crypto_box_curve25519xsalsa20poly1305_MACBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_box_macbytes(void);
|
size_t crypto_box_macbytes(void);
|
||||||
|
|
||||||
#define crypto_box_PRIMITIVE "curve25519xsalsa20poly1305"
|
#define crypto_box_PRIMITIVE "curve25519xsalsa20poly1305"
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *crypto_box_primitive(void);
|
const char *crypto_box_primitive(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box_keypair(unsigned char *pk, unsigned char *sk);
|
int crypto_box_keypair(unsigned char *pk, unsigned char *sk);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box_beforenm(unsigned char *k, const unsigned char *pk,
|
int crypto_box_beforenm(unsigned char *k, const unsigned char *pk,
|
||||||
const unsigned char *sk);
|
const unsigned char *sk);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box_afternm(unsigned char *c, const unsigned char *m,
|
int crypto_box_afternm(unsigned char *c, const unsigned char *m,
|
||||||
unsigned long long mlen, const unsigned char *n,
|
unsigned long long mlen, const unsigned char *n,
|
||||||
const unsigned char *k);
|
const unsigned char *k);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box_open_afternm(unsigned char *m, const unsigned char *c,
|
int crypto_box_open_afternm(unsigned char *m, const unsigned char *c,
|
||||||
unsigned long long clen, const unsigned char *n,
|
unsigned long long clen, const unsigned char *n,
|
||||||
const unsigned char *k);
|
const unsigned char *k);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box(unsigned char *c, const unsigned char *m,
|
int crypto_box(unsigned char *c, const unsigned char *m,
|
||||||
unsigned long long mlen, const unsigned char *n,
|
unsigned long long mlen, const unsigned char *n,
|
||||||
const unsigned char *pk, const unsigned char *sk);
|
const unsigned char *pk, const unsigned char *sk);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box_open(unsigned char *m, const unsigned char *c,
|
int crypto_box_open(unsigned char *m, const unsigned char *c,
|
||||||
unsigned long long clen, const unsigned char *n,
|
unsigned long long clen, const unsigned char *n,
|
||||||
const unsigned char *pk, const unsigned char *sk);
|
const unsigned char *pk, const unsigned char *sk);
|
||||||
|
@ -15,11 +15,22 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box_curve25519xsalsa20poly1305_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *);
|
int crypto_box_curve25519xsalsa20poly1305_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box_curve25519xsalsa20poly1305_ref_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *);
|
int crypto_box_curve25519xsalsa20poly1305_ref_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box_curve25519xsalsa20poly1305_ref_keypair(unsigned char *,unsigned char *);
|
int crypto_box_curve25519xsalsa20poly1305_ref_keypair(unsigned char *,unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box_curve25519xsalsa20poly1305_ref_beforenm(unsigned char *,const unsigned char *,const unsigned char *);
|
int crypto_box_curve25519xsalsa20poly1305_ref_beforenm(unsigned char *,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box_curve25519xsalsa20poly1305_ref_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_box_curve25519xsalsa20poly1305_ref_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_box_curve25519xsalsa20poly1305_ref_open_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_box_curve25519xsalsa20poly1305_ref_open_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_core_hsalsa20_ref2(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
|
int crypto_core_hsalsa20_ref2(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_core_salsa20_ref(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
|
int crypto_core_salsa20_ref(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_core_salsa2012_ref(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
|
int crypto_core_salsa2012_ref(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_core_salsa208_ref(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
|
int crypto_core_salsa208_ref(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -11,37 +11,47 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define crypto_generichash_BYTES_MIN crypto_generichash_blake2b_BYTES_MIN
|
#define crypto_generichash_BYTES_MIN crypto_generichash_blake2b_BYTES_MIN
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_generichash_bytes_min(void);
|
size_t crypto_generichash_bytes_min(void);
|
||||||
|
|
||||||
#define crypto_generichash_BYTES_MAX crypto_generichash_blake2b_BYTES_MAX
|
#define crypto_generichash_BYTES_MAX crypto_generichash_blake2b_BYTES_MAX
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_generichash_bytes_max(void);
|
size_t crypto_generichash_bytes_max(void);
|
||||||
|
|
||||||
#define crypto_generichash_KEYBYTES_MIN crypto_generichash_blake2b_KEYBYTES_MIN
|
#define crypto_generichash_KEYBYTES_MIN crypto_generichash_blake2b_KEYBYTES_MIN
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_generichash_keybytes_min(void);
|
size_t crypto_generichash_keybytes_min(void);
|
||||||
|
|
||||||
#define crypto_generichash_KEYBYTES_MAX crypto_generichash_blake2b_KEYBYTES_MAX
|
#define crypto_generichash_KEYBYTES_MAX crypto_generichash_blake2b_KEYBYTES_MAX
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_generichash_keybytes_max(void);
|
size_t crypto_generichash_keybytes_max(void);
|
||||||
|
|
||||||
#define crypto_generichash_BLOCKBYTES crypto_generichash_blake2b_BLOCKBYTES
|
#define crypto_generichash_BLOCKBYTES crypto_generichash_blake2b_BLOCKBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_generichash_blockbytes(void);
|
size_t crypto_generichash_blockbytes(void);
|
||||||
|
|
||||||
#define crypto_generichash_PRIMITIVE "blake2b"
|
#define crypto_generichash_PRIMITIVE "blake2b"
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *crypto_generichash_primitive(void);
|
const char *crypto_generichash_primitive(void);
|
||||||
|
|
||||||
typedef crypto_generichash_blake2b_state crypto_generichash_state;
|
typedef crypto_generichash_blake2b_state crypto_generichash_state;
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_generichash(unsigned char *out, size_t outlen,
|
int crypto_generichash(unsigned char *out, size_t outlen,
|
||||||
const unsigned char *in, unsigned long long inlen,
|
const unsigned char *in, unsigned long long inlen,
|
||||||
const unsigned char *key, size_t keylen);
|
const unsigned char *key, size_t keylen);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_generichash_init(crypto_generichash_blake2b_state *state,
|
int crypto_generichash_init(crypto_generichash_blake2b_state *state,
|
||||||
const unsigned char *key,
|
const unsigned char *key,
|
||||||
const size_t keylen, const size_t outlen);
|
const size_t keylen, const size_t outlen);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_generichash_update(crypto_generichash_blake2b_state *state,
|
int crypto_generichash_update(crypto_generichash_blake2b_state *state,
|
||||||
const unsigned char *in,
|
const unsigned char *in,
|
||||||
unsigned long long inlen);
|
unsigned long long inlen);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_generichash_final(crypto_generichash_blake2b_state *state,
|
int crypto_generichash_final(crypto_generichash_blake2b_state *state,
|
||||||
unsigned char *out, const size_t outlen);
|
unsigned char *out, const size_t outlen);
|
||||||
|
|
||||||
|
@ -33,19 +33,23 @@ CRYPTO_ALIGN(64) typedef struct {
|
|||||||
} crypto_generichash_blake2b_state;
|
} crypto_generichash_blake2b_state;
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_generichash_blake2b_ref(unsigned char *out, size_t outlen,
|
int crypto_generichash_blake2b_ref(unsigned char *out, size_t outlen,
|
||||||
const unsigned char *in,
|
const unsigned char *in,
|
||||||
unsigned long long inlen,
|
unsigned long long inlen,
|
||||||
const unsigned char *key, size_t keylen);
|
const unsigned char *key, size_t keylen);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_generichash_blake2b_init(crypto_generichash_blake2b_state *state,
|
int crypto_generichash_blake2b_init(crypto_generichash_blake2b_state *state,
|
||||||
const unsigned char *key,
|
const unsigned char *key,
|
||||||
const size_t keylen, const size_t outlen);
|
const size_t keylen, const size_t outlen);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_generichash_blake2b_update(crypto_generichash_blake2b_state *state,
|
int crypto_generichash_blake2b_update(crypto_generichash_blake2b_state *state,
|
||||||
const unsigned char *in,
|
const unsigned char *in,
|
||||||
unsigned long long inlen);
|
unsigned long long inlen);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_generichash_blake2b_final(crypto_generichash_blake2b_state *state,
|
int crypto_generichash_blake2b_final(crypto_generichash_blake2b_state *state,
|
||||||
unsigned char *out,
|
unsigned char *out,
|
||||||
const size_t outlen);
|
const size_t outlen);
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_hash(unsigned char *out, const unsigned char *in,
|
int crypto_hash(unsigned char *out, const unsigned char *in,
|
||||||
unsigned long long inlen);
|
unsigned long long inlen);
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_hash_sha256_ref(unsigned char *,const unsigned char *,unsigned long long);
|
int crypto_hash_sha256_ref(unsigned char *,const unsigned char *,unsigned long long);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_hash_sha512_ref(unsigned char *,const unsigned char *,unsigned long long);
|
int crypto_hash_sha512_ref(unsigned char *,const unsigned char *,unsigned long long);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_hashblocks_sha256_ref(unsigned char *,const unsigned char *,unsigned long long);
|
int crypto_hashblocks_sha256_ref(unsigned char *,const unsigned char *,unsigned long long);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_hashblocks_sha512_ref(unsigned char *,const unsigned char *,unsigned long long);
|
int crypto_hashblocks_sha512_ref(unsigned char *,const unsigned char *,unsigned long long);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -26,18 +26,23 @@ typedef struct crypto_onetimeauth_poly1305_implementation {
|
|||||||
const unsigned char *k);
|
const unsigned char *k);
|
||||||
} crypto_onetimeauth_poly1305_implementation;
|
} crypto_onetimeauth_poly1305_implementation;
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *crypto_onetimeauth_poly1305_ref_implementation_name(void);
|
const char *crypto_onetimeauth_poly1305_ref_implementation_name(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_onetimeauth_poly1305_set_implementation(crypto_onetimeauth_poly1305_implementation *impl);
|
int crypto_onetimeauth_poly1305_set_implementation(crypto_onetimeauth_poly1305_implementation *impl);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
crypto_onetimeauth_poly1305_implementation *
|
crypto_onetimeauth_poly1305_implementation *
|
||||||
crypto_onetimeauth_pick_best_implementation(void);
|
crypto_onetimeauth_pick_best_implementation(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_onetimeauth_poly1305(unsigned char *out,
|
int crypto_onetimeauth_poly1305(unsigned char *out,
|
||||||
const unsigned char *in,
|
const unsigned char *in,
|
||||||
unsigned long long inlen,
|
unsigned long long inlen,
|
||||||
const unsigned char *k);
|
const unsigned char *k);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_onetimeauth_poly1305_verify(const unsigned char *h,
|
int crypto_onetimeauth_poly1305_verify(const unsigned char *h,
|
||||||
const unsigned char *in,
|
const unsigned char *in,
|
||||||
unsigned long long inlen,
|
unsigned long long inlen,
|
||||||
|
@ -8,16 +8,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
extern struct crypto_onetimeauth_poly1305_implementation
|
extern struct crypto_onetimeauth_poly1305_implementation
|
||||||
crypto_onetimeauth_poly1305_53_implementation;
|
crypto_onetimeauth_poly1305_53_implementation;
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *crypto_onetimeauth_poly1305_53_implementation_name(void);
|
const char *crypto_onetimeauth_poly1305_53_implementation_name(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_onetimeauth_poly1305_53(unsigned char *out,
|
int crypto_onetimeauth_poly1305_53(unsigned char *out,
|
||||||
const unsigned char *in,
|
const unsigned char *in,
|
||||||
unsigned long long inlen,
|
unsigned long long inlen,
|
||||||
const unsigned char *k);
|
const unsigned char *k);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_onetimeauth_poly1305_53_verify(const unsigned char *h,
|
int crypto_onetimeauth_poly1305_53_verify(const unsigned char *h,
|
||||||
const unsigned char *in,
|
const unsigned char *in,
|
||||||
unsigned long long inlen,
|
unsigned long long inlen,
|
||||||
|
@ -8,16 +8,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
extern struct crypto_onetimeauth_poly1305_implementation
|
extern struct crypto_onetimeauth_poly1305_implementation
|
||||||
crypto_onetimeauth_poly1305_ref_implementation;
|
crypto_onetimeauth_poly1305_ref_implementation;
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *crypto_onetimeauth_poly1305_ref_implementation_name(void);
|
const char *crypto_onetimeauth_poly1305_ref_implementation_name(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_onetimeauth_poly1305_ref(unsigned char *out,
|
int crypto_onetimeauth_poly1305_ref(unsigned char *out,
|
||||||
const unsigned char *in,
|
const unsigned char *in,
|
||||||
unsigned long long inlen,
|
unsigned long long inlen,
|
||||||
const unsigned char *k);
|
const unsigned char *k);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_onetimeauth_poly1305_ref_verify(const unsigned char *h,
|
int crypto_onetimeauth_poly1305_ref_verify(const unsigned char *h,
|
||||||
const unsigned char *in,
|
const unsigned char *in,
|
||||||
unsigned long long inlen,
|
unsigned long long inlen,
|
||||||
|
@ -11,16 +11,21 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define crypto_scalarmult_BYTES crypto_scalarmult_curve25519_BYTES
|
#define crypto_scalarmult_BYTES crypto_scalarmult_curve25519_BYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_scalarmult_bytes(void);
|
size_t crypto_scalarmult_bytes(void);
|
||||||
|
|
||||||
#define crypto_scalarmult_SCALARBYTES crypto_scalarmult_curve25519_SCALARBYTES
|
#define crypto_scalarmult_SCALARBYTES crypto_scalarmult_curve25519_SCALARBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_scalarmult_scalarbytes(void);
|
size_t crypto_scalarmult_scalarbytes(void);
|
||||||
|
|
||||||
#define crypto_scalarmult_PRIMITIVE "curve25519"
|
#define crypto_scalarmult_PRIMITIVE "curve25519"
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *crypto_scalarmult_primitive(void);
|
const char *crypto_scalarmult_primitive(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_scalarmult_base(unsigned char *q, const unsigned char *n);
|
int crypto_scalarmult_base(unsigned char *q, const unsigned char *n);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_scalarmult(unsigned char *q, const unsigned char *n,
|
int crypto_scalarmult(unsigned char *q, const unsigned char *n,
|
||||||
const unsigned char *p);
|
const unsigned char *p);
|
||||||
|
|
||||||
|
@ -11,24 +11,31 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define crypto_secretbox_KEYBYTES crypto_secretbox_xsalsa20poly1305_KEYBYTES
|
#define crypto_secretbox_KEYBYTES crypto_secretbox_xsalsa20poly1305_KEYBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_secretbox_keybytes(void);
|
size_t crypto_secretbox_keybytes(void);
|
||||||
|
|
||||||
#define crypto_secretbox_NONCEBYTES crypto_secretbox_xsalsa20poly1305_NONCEBYTES
|
#define crypto_secretbox_NONCEBYTES crypto_secretbox_xsalsa20poly1305_NONCEBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_secretbox_noncebytes(void);
|
size_t crypto_secretbox_noncebytes(void);
|
||||||
|
|
||||||
#define crypto_secretbox_ZEROBYTES crypto_secretbox_xsalsa20poly1305_ZEROBYTES
|
#define crypto_secretbox_ZEROBYTES crypto_secretbox_xsalsa20poly1305_ZEROBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_secretbox_zerobytes(void);
|
size_t crypto_secretbox_zerobytes(void);
|
||||||
|
|
||||||
#define crypto_secretbox_BOXZEROBYTES crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES
|
#define crypto_secretbox_BOXZEROBYTES crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_secretbox_boxzerobytes(void);
|
size_t crypto_secretbox_boxzerobytes(void);
|
||||||
|
|
||||||
#define crypto_secretbox_PRIMITIVE "xsalsa20poly1305"
|
#define crypto_secretbox_PRIMITIVE "xsalsa20poly1305"
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *crypto_secretbox_primitive(void);
|
const char *crypto_secretbox_primitive(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_secretbox(unsigned char *c, const unsigned char *m,
|
int crypto_secretbox(unsigned char *c, const unsigned char *m,
|
||||||
unsigned long long mlen, const unsigned char *n,
|
unsigned long long mlen, const unsigned char *n,
|
||||||
const unsigned char *k);
|
const unsigned char *k);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_secretbox_open(unsigned char *m, const unsigned char *c,
|
int crypto_secretbox_open(unsigned char *m, const unsigned char *c,
|
||||||
unsigned long long clen, const unsigned char *n,
|
unsigned long long clen, const unsigned char *n,
|
||||||
const unsigned char *k);
|
const unsigned char *k);
|
||||||
|
@ -12,7 +12,10 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_secretbox_xsalsa20poly1305_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_secretbox_xsalsa20poly1305_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_secretbox_xsalsa20poly1305_ref_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_secretbox_xsalsa20poly1305_ref_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -11,14 +11,18 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define crypto_shorthash_BYTES crypto_shorthash_siphash24_BYTES
|
#define crypto_shorthash_BYTES crypto_shorthash_siphash24_BYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_shorthash_bytes(void);
|
size_t crypto_shorthash_bytes(void);
|
||||||
|
|
||||||
#define crypto_shorthash_KEYBYTES crypto_shorthash_siphash24_KEYBYTES
|
#define crypto_shorthash_KEYBYTES crypto_shorthash_siphash24_KEYBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_shorthash_keybytes(void);
|
size_t crypto_shorthash_keybytes(void);
|
||||||
|
|
||||||
#define crypto_shorthash_PRIMITIVE "siphash24"
|
#define crypto_shorthash_PRIMITIVE "siphash24"
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *crypto_shorthash_primitive(void);
|
const char *crypto_shorthash_primitive(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_shorthash(unsigned char *out, const unsigned char *in,
|
int crypto_shorthash(unsigned char *out, const unsigned char *in,
|
||||||
unsigned long long inlen, const unsigned char *k);
|
unsigned long long inlen, const unsigned char *k);
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_shorthash_siphash24_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
|
int crypto_shorthash_siphash24_ref(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -11,26 +11,34 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define crypto_sign_BYTES crypto_sign_ed25519_BYTES
|
#define crypto_sign_BYTES crypto_sign_ed25519_BYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_sign_bytes(void);
|
size_t crypto_sign_bytes(void);
|
||||||
|
|
||||||
#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES
|
#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_sign_publickeybytes(void);
|
size_t crypto_sign_publickeybytes(void);
|
||||||
|
|
||||||
#define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES
|
#define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES
|
||||||
|
SODIUM_EXPORT
|
||||||
size_t crypto_sign_secretkeybytes(void);
|
size_t crypto_sign_secretkeybytes(void);
|
||||||
|
|
||||||
#define crypto_sign_PRIMITIVE "ed25519"
|
#define crypto_sign_PRIMITIVE "ed25519"
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *crypto_sign_primitive(void);
|
const char *crypto_sign_primitive(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_sign_seed_keypair(unsigned char *pk, unsigned char *sk,
|
int crypto_sign_seed_keypair(unsigned char *pk, unsigned char *sk,
|
||||||
const unsigned char *seed);
|
const unsigned char *seed);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_sign_keypair(unsigned char *pk, unsigned char *sk);
|
int crypto_sign_keypair(unsigned char *pk, unsigned char *sk);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_sign(unsigned char *sm, unsigned long long *smlen,
|
int crypto_sign(unsigned char *sm, unsigned long long *smlen,
|
||||||
const unsigned char *m, unsigned long long mlen,
|
const unsigned char *m, unsigned long long mlen,
|
||||||
const unsigned char *sk);
|
const unsigned char *sk);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_sign_open(unsigned char *m, unsigned long long *mlen,
|
int crypto_sign_open(unsigned char *m, unsigned long long *mlen,
|
||||||
const unsigned char *sm, unsigned long long smlen,
|
const unsigned char *sm, unsigned long long smlen,
|
||||||
const unsigned char *pk);
|
const unsigned char *pk);
|
||||||
|
@ -11,9 +11,17 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_sign_ed25519_ref10(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
|
int crypto_sign_ed25519_ref10(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_sign_ed25519_ref10_open(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
|
int crypto_sign_ed25519_ref10_open(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_sign_ed25519_ref10_keypair(unsigned char *,unsigned char *);
|
int crypto_sign_ed25519_ref10_keypair(unsigned char *,unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_sign_ed25519_ref10_seed_keypair(unsigned char *,unsigned char *,const unsigned char *);
|
int crypto_sign_ed25519_ref10_seed_keypair(unsigned char *,unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -11,8 +11,13 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_sign_edwards25519sha512batch_ref(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
|
int crypto_sign_edwards25519sha512batch_ref(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_sign_edwards25519sha512batch_ref_open(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
|
int crypto_sign_edwards25519sha512batch_ref_open(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_sign_edwards25519sha512batch_ref_keypair(unsigned char *,unsigned char *);
|
int crypto_sign_edwards25519sha512batch_ref_keypair(unsigned char *,unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -19,9 +19,11 @@ size_t crypto_stream_noncebytes(void);
|
|||||||
#define crypto_stream_PRIMITIVE "xsalsa20"
|
#define crypto_stream_PRIMITIVE "xsalsa20"
|
||||||
const char *crypto_stream_primitive(void);
|
const char *crypto_stream_primitive(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream(unsigned char *c, unsigned long long clen,
|
int crypto_stream(unsigned char *c, unsigned long long clen,
|
||||||
const unsigned char *n, const unsigned char *k);
|
const unsigned char *n, const unsigned char *k);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_xor(unsigned char *c, const unsigned char *m,
|
int crypto_stream_xor(unsigned char *c, const unsigned char *m,
|
||||||
unsigned long long mlen, const unsigned char *n,
|
unsigned long long mlen, const unsigned char *n,
|
||||||
const unsigned char *k);
|
const unsigned char *k);
|
||||||
|
@ -11,10 +11,20 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_aes128ctr_portable(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_aes128ctr_portable(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_aes128ctr_portable_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_aes128ctr_portable_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_aes128ctr_portable_beforenm(unsigned char *,const unsigned char *);
|
int crypto_stream_aes128ctr_portable_beforenm(unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_aes128ctr_portable_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_aes128ctr_portable_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_aes128ctr_portable_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_aes128ctr_portable_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -10,10 +10,19 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa20_ref(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa20_ref(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa20_ref_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa20_ref_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa20_ref_beforenm(unsigned char *,const unsigned char *);
|
int crypto_stream_salsa20_ref_beforenm(unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa20_ref_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa20_ref_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa20_ref_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa20_ref_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -10,10 +10,19 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa2012_ref(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa2012_ref(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa2012_ref_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa2012_ref_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa2012_ref_beforenm(unsigned char *,const unsigned char *);
|
int crypto_stream_salsa2012_ref_beforenm(unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa2012_ref_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa2012_ref_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa2012_ref_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa2012_ref_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -10,10 +10,19 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa208_ref(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa208_ref(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa208_ref_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa208_ref_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa208_ref_beforenm(unsigned char *,const unsigned char *);
|
int crypto_stream_salsa208_ref_beforenm(unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa208_ref_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa208_ref_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_salsa208_ref_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_salsa208_ref_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -10,10 +10,19 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_xsalsa20_ref(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_xsalsa20_ref(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_xsalsa20_ref_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_xsalsa20_ref_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_xsalsa20_ref_beforenm(unsigned char *,const unsigned char *);
|
int crypto_stream_xsalsa20_ref_beforenm(unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_xsalsa20_ref_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_xsalsa20_ref_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_stream_xsalsa20_ref_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
int crypto_stream_xsalsa20_ref_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -7,9 +7,11 @@
|
|||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_verify_16(const unsigned char *x, const unsigned char *y);
|
int crypto_verify_16(const unsigned char *x, const unsigned char *y);
|
||||||
|
|
||||||
#define crypto_verify_16_ref crypto_verify_16
|
#define crypto_verify_16_ref crypto_verify_16
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -8,7 +8,10 @@
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int crypto_verify_32(const unsigned char *x, const unsigned char *y);
|
int crypto_verify_32(const unsigned char *x, const unsigned char *y);
|
||||||
|
|
||||||
#define crypto_verify_32_ref crypto_verify_32
|
#define crypto_verify_32_ref crypto_verify_32
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -22,15 +22,28 @@ typedef struct randombytes_implementation {
|
|||||||
int (*close)(void);
|
int (*close)(void);
|
||||||
} randombytes_implementation;
|
} randombytes_implementation;
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int randombytes_set_implementation(randombytes_implementation *impl);
|
int randombytes_set_implementation(randombytes_implementation *impl);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
void randombytes(unsigned char *buf, unsigned long long size);
|
void randombytes(unsigned char *buf, unsigned long long size);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *randombytes_implementation_name(void);
|
const char *randombytes_implementation_name(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
uint32_t randombytes_random(void);
|
uint32_t randombytes_random(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
void randombytes_stir(void);
|
void randombytes_stir(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
uint32_t randombytes_uniform(const uint32_t upper_bound);
|
uint32_t randombytes_uniform(const uint32_t upper_bound);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
void randombytes_buf(void * const buf, const size_t size);
|
void randombytes_buf(void * const buf, const size_t size);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int randombytes_close(void);
|
int randombytes_close(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -11,14 +11,25 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
extern struct randombytes_implementation randombytes_salsa20_implementation;
|
extern struct randombytes_implementation randombytes_salsa20_implementation;
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *randombytes_salsa20_implementation_name(void);
|
const char *randombytes_salsa20_implementation_name(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
uint32_t randombytes_salsa20_random(void);
|
uint32_t randombytes_salsa20_random(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
void randombytes_salsa20_random_stir(void);
|
void randombytes_salsa20_random_stir(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
uint32_t randombytes_salsa20_random_uniform(const uint32_t upper_bound);
|
uint32_t randombytes_salsa20_random_uniform(const uint32_t upper_bound);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
void randombytes_salsa20_random_buf(void * const buf, const size_t size);
|
void randombytes_salsa20_random_buf(void * const buf, const size_t size);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int randombytes_salsa20_random_close(void);
|
int randombytes_salsa20_random_close(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -11,14 +11,25 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
extern struct randombytes_implementation randombytes_sysrandom_implementation;
|
extern struct randombytes_implementation randombytes_sysrandom_implementation;
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
const char *randombytes_sysrandom_implementation_name(void);
|
const char *randombytes_sysrandom_implementation_name(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
uint32_t randombytes_sysrandom(void);
|
uint32_t randombytes_sysrandom(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
void randombytes_sysrandom_stir(void);
|
void randombytes_sysrandom_stir(void);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
uint32_t randombytes_sysrandom_uniform(const uint32_t upper_bound);
|
uint32_t randombytes_sysrandom_uniform(const uint32_t upper_bound);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
void randombytes_sysrandom_buf(void * const buf, const size_t size);
|
void randombytes_sysrandom_buf(void * const buf, const size_t size);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
int randombytes_sysrandom_close(void);
|
int randombytes_sysrandom_close(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -10,11 +10,12 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void sodium_memzero(void * const pnt, const size_t len);
|
|
||||||
|
|
||||||
void *_sodium_alignedcalloc(unsigned char ** const unaligned_p,
|
void *_sodium_alignedcalloc(unsigned char ** const unaligned_p,
|
||||||
const size_t len);
|
const size_t len);
|
||||||
|
|
||||||
|
SODIUM_EXPORT
|
||||||
|
void sodium_memzero(void * const pnt, const size_t len);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user