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:
Frank Denis
2013-04-22 16:30:31 -07:00
parent 11d09e0d4e
commit e144f9d40d
2 changed files with 4 additions and 4 deletions
@@ -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