forked from wolfSSL/wolfssl
No oneshot Hash() in FIPS c files anymore
This commit is contained in:
@ -57,11 +57,6 @@
|
||||
return ShaFinal_fips(sha,out);
|
||||
}
|
||||
|
||||
int wc_ShaHash(const byte* data, word32 sz, byte* out)
|
||||
{
|
||||
return ShaHash(data, sz, out);
|
||||
}
|
||||
|
||||
#else /* else build without fips */
|
||||
|
||||
#if defined(WOLFSSL_TI_HASH)
|
||||
|
@ -49,11 +49,6 @@ int wc_Sha256Final(Sha256* sha, byte* out)
|
||||
}
|
||||
|
||||
|
||||
int wc_Sha256Hash(const byte* data, word32 len, byte* out)
|
||||
{
|
||||
return Sha256Hash(data, len, out);
|
||||
}
|
||||
|
||||
#else /* else build without fips */
|
||||
|
||||
#if !defined(NO_SHA256) && defined(WOLFSSL_TI_HASH)
|
||||
|
@ -47,11 +47,6 @@ int wc_Sha512Final(Sha512* sha, byte* out)
|
||||
}
|
||||
|
||||
|
||||
int wc_Sha512Hash(const byte* data, word32 len, byte* out)
|
||||
{
|
||||
return Sha512Hash(data, len, out);
|
||||
}
|
||||
|
||||
#if defined(WOLFSSL_SHA384) || defined(HAVE_AESGCM)
|
||||
|
||||
int wc_InitSha384(Sha384* sha)
|
||||
@ -72,10 +67,6 @@ int wc_Sha384Final(Sha384* sha, byte* out)
|
||||
}
|
||||
|
||||
|
||||
int wc_Sha384Hash(const byte* data, word32 len, byte* out)
|
||||
{
|
||||
return Sha384Hash(data, len, out);
|
||||
}
|
||||
#endif /* WOLFSSL_SHA384 */
|
||||
#else /* else build without using fips */
|
||||
#include <wolfssl/wolfcrypt/logging.h>
|
||||
|
Reference in New Issue
Block a user