mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-28 04:37:13 +09:00
crypto_hash_sha(256|512) are the exported functions that have to be exported.
_ref are implementations, that shouldn't be exported.
This commit is contained in:
@@ -11,12 +11,12 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
SODIUM_EXPORT
|
||||
int crypto_hash_sha256_ref(unsigned char *,const unsigned char *,unsigned long long);
|
||||
int crypto_hash_sha256(unsigned char *,const unsigned char *,unsigned long long);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#define crypto_hash_sha256 crypto_hash_sha256_ref
|
||||
#define crypto_hash_sha256_ref crypto_hash_sha256
|
||||
|
||||
#endif
|
||||
|
||||
@@ -11,12 +11,12 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
SODIUM_EXPORT
|
||||
int crypto_hash_sha512_ref(unsigned char *,const unsigned char *,unsigned long long);
|
||||
int crypto_hash_sha512(unsigned char *,const unsigned char *,unsigned long long);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#define crypto_hash_sha512 crypto_hash_sha512_ref
|
||||
#define crypto_hash_sha512_ref crypto_hash_sha512
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user