forked from wolfSSL/wolfssl
Fips ready (#2422)
* Changes to update stunnel support * Required additions for building fips-ready with speedups * Fix SetASNIntRSA
This commit is contained in:
15
configure.ac
15
configure.ac
@ -3424,9 +3424,24 @@ then
|
|||||||
AM_CFLAGS="$AM_CFLAGS -DECC_SHAMIR"
|
AM_CFLAGS="$AM_CFLAGS -DECC_SHAMIR"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Requires wolfSSL_OBJ_txt2nid
|
||||||
|
if test "x$ENABLED_CERTEXT" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_CERTEXT="yes"
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_EXT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Requires certgen
|
||||||
|
if test "x$ENABLED_CERTGEN" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_CERTGEN="yes"
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_GEN"
|
||||||
|
fi
|
||||||
|
|
||||||
AM_CFLAGS="$AM_CFLAGS -DHAVE_STUNNEL -DWOLFSSL_ALWAYS_VERIFY_CB"
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_STUNNEL -DWOLFSSL_ALWAYS_VERIFY_CB"
|
||||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALWAYS_KEEP_SNI -DHAVE_EX_DATA"
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALWAYS_KEEP_SNI -DHAVE_EX_DATA"
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DES_ECB"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no" \
|
if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no" \
|
||||||
|
@ -84,6 +84,9 @@ endif
|
|||||||
|
|
||||||
if BUILD_AESNI
|
if BUILD_AESNI
|
||||||
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_asm.S
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_asm.S
|
||||||
|
if BUILD_INTELASM
|
||||||
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_gcm_asm.S
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if BUILD_DES3
|
if BUILD_DES3
|
||||||
@ -92,10 +95,16 @@ endif
|
|||||||
|
|
||||||
if BUILD_SHA
|
if BUILD_SHA
|
||||||
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha.c
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha.c
|
||||||
|
if BUILD_INTELASM
|
||||||
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha256_asm.S
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if BUILD_SHA512
|
if BUILD_SHA512
|
||||||
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512.c
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512.c
|
||||||
|
if BUILD_INTELASM
|
||||||
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512_asm.S
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if BUILD_SHA3
|
if BUILD_SHA3
|
||||||
|
@ -647,7 +647,7 @@ static int SetASNIntMP(mp_int* n, int maxSz, byte* output)
|
|||||||
* MP_TO_E when encoding the integer fails.
|
* MP_TO_E when encoding the integer fails.
|
||||||
* Otherwise, the number of bytes added to the buffer.
|
* Otherwise, the number of bytes added to the buffer.
|
||||||
*/
|
*/
|
||||||
static int SetASNIntRSA(mp_int* n, byte* output)
|
static int SetASNIntRSA(void* n, byte* output)
|
||||||
{
|
{
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
int leadingBit;
|
int leadingBit;
|
||||||
|
Reference in New Issue
Block a user