Avoid duplicate crypto_hash.h

This commit is contained in:
Frank Denis
2013-04-21 17:32:06 -07:00
parent 34731d9717
commit c1c3ecd80a
5 changed files with 4 additions and 16 deletions
+2 -2
View File
@@ -24,9 +24,9 @@ libsodium_la_SOURCES = \
crypto_hashblocks/sha256/ref/crypto_hashblocks.h \
crypto_hashblocks/sha512/ref/blocks_sha512.c \
crypto_hashblocks/sha512/ref/crypto_hashblocks.h \
crypto_hash/sha256/ref/crypto_hash.h \
crypto_hash/sha256/ref/api.h \
crypto_hash/sha256/ref/hash_sha256.c \
crypto_hash/sha512/ref/crypto_hash.h \
crypto_hash/sha512/ref/api.h \
crypto_hash/sha512/ref/hash_sha512.c \
crypto_shorthash/siphash24/ref/crypto_shorthash.h \
crypto_shorthash/siphash24/ref/shorthash_siphash24.c \
@@ -1,12 +0,0 @@
#ifndef crypto_hash_H
#define crypto_hash_H
#include "crypto_hash_sha256.h"
#define crypto_hash crypto_hash_sha256
#define crypto_hash_BYTES crypto_hash_sha256_BYTES
#define crypto_hash_PRIMITIVE "sha256"
#define crypto_hash_IMPLEMENTATION crypto_hash_sha256_IMPLEMENTATION
#define crypto_hash_VERSION crypto_hash_sha256_VERSION
#endif
@@ -4,8 +4,8 @@ D. J. Bernstein
Public domain.
*/
#include "api.h"
#include "crypto_hashblocks_sha256.h"
#include "crypto_hash.h"
#define blocks crypto_hashblocks_sha256
@@ -4,8 +4,8 @@ D. J. Bernstein
Public domain.
*/
#include "api.h"
#include "crypto_hashblocks_sha512.h"
#include "crypto_hash.h"
#define blocks crypto_hashblocks_sha512