Add WC* to match wolfssl and wolfssl-fips

pull/12/head
Aaron Jense 2018-06-29 14:32:43 -06:00
parent 450141b8b2
commit 9c65cae351
1 changed files with 6 additions and 2 deletions

View File

@ -31,11 +31,15 @@
/* #define WOLFCRYPT_JNI_DEBUG_ON */
#include <wolfcrypt_jni_debug.h>
#ifdef HAVE_FIPS
#define WC_INLINE INLINE
#endif
/* copy from cyassl/hmac.c */
static WC_INLINE int GetHashSizeByType(int type)
{
if (!(type == WC_MD5 || type == WC_SHA || type == WC_SHA256 || type == WC_SHA384
|| type == WC_SHA512 || type == BLAKE2B_ID))
if (!(type == WC_MD5 || type == WC_SHA || type == WC_SHA256
|| type == WC_SHA384 || type == WC_SHA512 || type == BLAKE2B_ID))
return BAD_FUNC_ARG;
switch (type) {