Explicitly make crypto_hashblocks_sha512.h private.

This commit is contained in:
Frank Denis 2014-04-10 23:09:19 -07:00
parent a62af8a4e3
commit 479620bbd1
7 changed files with 10 additions and 9 deletions

View File

@ -328,7 +328,7 @@
<ClInclude Include="src\libsodium\include\sodium\crypto_generichash.h" />
<ClInclude Include="src\libsodium\include\sodium\crypto_generichash_blake2b.h" />
<ClInclude Include="src\libsodium\include\sodium\crypto_hash.h" />
<ClInclude Include="src\libsodium\include\sodium\crypto_hashblocks_sha512.h" />
<ClInclude Include="src\libsodium\include\sodium\_crypto_hashblocks_sha512.h" />
<ClInclude Include="src\libsodium\include\sodium\crypto_hash_sha256.h" />
<ClInclude Include="src\libsodium\include\sodium\crypto_hash_sha512.h" />
<ClInclude Include="src\libsodium\include\sodium\crypto_int32.h" />

View File

@ -60,7 +60,7 @@
<ClInclude Include="src\libsodium\include\sodium\crypto_hash_sha512.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\libsodium\include\sodium\crypto_hashblocks_sha512.h">
<ClInclude Include="src\libsodium\include\sodium\_crypto_hashblocks_sha512.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\libsodium\include\sodium\crypto_int32.h">

View File

@ -5,7 +5,7 @@
* */
#include "api.h"
#include "crypto_hashblocks_sha512.h"
#include "_crypto_hashblocks_sha512.h"
#define blocks crypto_hashblocks_sha512

View File

@ -5,7 +5,7 @@ Public domain.
*/
#include "api.h"
#include "crypto_hashblocks_sha512.h"
#include "_crypto_hashblocks_sha512.h"
#define blocks crypto_hashblocks_sha512

View File

@ -1,5 +1,5 @@
#include "crypto_hashblocks_sha512.h"
#include "_crypto_hashblocks_sha512.h"
#define crypto_hashblocks crypto_hashblocks_sha512
#define crypto_hashblocks_STATEBYTES crypto_hashblocks_sha512_STATEBYTES

View File

@ -16,7 +16,6 @@ SODIUM_EXPORT = \
sodium/crypto_hash.h \
sodium/crypto_hash_sha256.h \
sodium/crypto_hash_sha512.h \
sodium/crypto_hashblocks_sha512.h \
sodium/crypto_onetimeauth.h \
sodium/crypto_onetimeauth_poly1305.h \
sodium/crypto_onetimeauth_poly1305_53.h \
@ -53,6 +52,7 @@ SODIUM_EXPORT = \
sodium/utils.h
EXTRA_SRC = $(SODIUM_EXPORT) \
sodium/_crypto_hashblocks_sha512.h \
sodium/version.h.in
nobase_include_HEADERS = $(SODIUM_EXPORT)

View File

@ -1,5 +1,5 @@
#ifndef crypto_hashblocks_sha512_H
#define crypto_hashblocks_sha512_H
#ifndef _crypto_hashblocks_sha512_H
#define _crypto_hashblocks_sha512_H
#include <stddef.h>
#include "export.h"
@ -13,7 +13,8 @@
# endif
extern "C" {
#endif
/* This function is only used internally */
int crypto_hashblocks_sha512(unsigned char *,const unsigned char *,unsigned long long);
#ifdef __cplusplus