crypto_hash/sha{256,512}/cp/api.h removal
This commit is contained in:
parent
b7fdeb5ed3
commit
db5eda696e
@ -42,10 +42,8 @@ libsodium_la_SOURCES = \
|
||||
crypto_generichash/blake2/ref/generichash_blake2b.c \
|
||||
crypto_hash/crypto_hash.c \
|
||||
crypto_hash/sha256/hash_sha256_api.c \
|
||||
crypto_hash/sha256/cp/api.h \
|
||||
crypto_hash/sha256/cp/hash_sha256.c \
|
||||
crypto_hash/sha512/hash_sha512_api.c \
|
||||
crypto_hash/sha512/cp/api.h \
|
||||
crypto_hash/sha512/cp/hash_sha512.c \
|
||||
crypto_onetimeauth/crypto_onetimeauth.c \
|
||||
crypto_onetimeauth/poly1305/onetimeauth_poly1305.c \
|
||||
|
@ -1,10 +0,0 @@
|
||||
|
||||
#include "crypto_hash_sha256.h"
|
||||
|
||||
#define crypto_hash crypto_hash_sha256
|
||||
#define crypto_hash_init crypto_hash_sha256_init
|
||||
#define crypto_hash_update crypto_hash_sha256_update
|
||||
#define crypto_hash_final crypto_hash_sha256_final
|
||||
#define crypto_hash_BYTES crypto_hash_sha256_BYTES
|
||||
#define crypto_hash_IMPLEMENTATION crypto_hash_sha256_IMPLEMENTATION
|
||||
#define crypto_hash_VERSION crypto_hash_sha256_VERSION
|
@ -26,7 +26,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "api.h"
|
||||
#include "crypto_hash_sha256.h"
|
||||
#include "utils.h"
|
||||
|
||||
@ -289,8 +288,8 @@ crypto_hash_sha256_final(crypto_hash_sha256_state *state,
|
||||
}
|
||||
|
||||
int
|
||||
crypto_hash(unsigned char *out, const unsigned char *in,
|
||||
unsigned long long inlen)
|
||||
crypto_hash_sha256(unsigned char *out, const unsigned char *in,
|
||||
unsigned long long inlen)
|
||||
{
|
||||
crypto_hash_sha256_state state;
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
|
||||
#include "crypto_hash_sha512.h"
|
||||
|
||||
#define crypto_hash crypto_hash_sha512
|
||||
#define crypto_hash_init crypto_hash_sha512_init
|
||||
#define crypto_hash_update crypto_hash_sha512_update
|
||||
#define crypto_hash_final crypto_hash_sha512_final
|
||||
#define crypto_hash_BYTES crypto_hash_sha512_BYTES
|
||||
#define crypto_hash_IMPLEMENTATION crypto_hash_sha512_IMPLEMENTATION
|
||||
#define crypto_hash_VERSION crypto_hash_sha512_VERSION
|
@ -309,8 +309,8 @@ crypto_hash_sha512_final(crypto_hash_sha512_state *state,
|
||||
}
|
||||
|
||||
int
|
||||
crypto_hash(unsigned char *out, const unsigned char *in,
|
||||
unsigned long long inlen)
|
||||
crypto_hash_sha512(unsigned char *out, const unsigned char *in,
|
||||
unsigned long long inlen)
|
||||
{
|
||||
crypto_hash_sha512_state state;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user