mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Fix broken Windows FIPS build
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
#define NO_RABBIT
|
#define NO_RABBIT
|
||||||
#define NO_DSA
|
#define NO_DSA
|
||||||
#define NO_MD4
|
#define NO_MD4
|
||||||
|
|
||||||
|
#define GCM_NONCE_MID_SZ 12
|
||||||
#else
|
#else
|
||||||
/* Enables blinding mode, to prevent timing attacks */
|
/* Enables blinding mode, to prevent timing attacks */
|
||||||
#define WC_RSA_BLINDING
|
#define WC_RSA_BLINDING
|
||||||
|
@@ -16632,6 +16632,7 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD *md)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
#if !defined(_WIN32) && !defined(HAVE_FIPS)
|
||||||
case EVP_CTRL_GCM_IV_GEN:
|
case EVP_CTRL_GCM_IV_GEN:
|
||||||
if (ctx->cipher.aes.keylen == 0 || ctx->ivSz == 0) {
|
if (ctx->cipher.aes.keylen == 0 || ctx->ivSz == 0) {
|
||||||
ret = WOLFSSL_FAILURE;
|
ret = WOLFSSL_FAILURE;
|
||||||
@@ -16645,6 +16646,7 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD *md)
|
|||||||
/* OpenSSL increments the IV. Not sure why */
|
/* OpenSSL increments the IV. Not sure why */
|
||||||
IncCtr(ctx->iv, ctx->ivSz);
|
IncCtr(ctx->iv, ctx->ivSz);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case EVP_CTRL_AEAD_SET_TAG:
|
case EVP_CTRL_AEAD_SET_TAG:
|
||||||
if(arg <= 0 || arg > 16 || (ptr == NULL))
|
if(arg <= 0 || arg > 16 || (ptr == NULL))
|
||||||
return WOLFSSL_FAILURE;
|
return WOLFSSL_FAILURE;
|
||||||
|
Reference in New Issue
Block a user