mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-26 17:28:29 -05:00
09eef142ea
Previously, EAP-SIM/AKA/AKA' did not work with number of crypto libraries (GnuTLS, CryptoAPI, NSS) since the required FIPS 186-2 PRF function was not implemented. This resulted in somewhat confusing error messages since the placeholder functions were silently returning an error. Fix this by using the internal implementation of FIP 186-2 PRF (including internal SHA-1 implementation) with crypto libraries that do not implement this in case EAP-SIM/AKA/AKA' is included in the build. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
64 lines
1.1 KiB
Makefile
64 lines
1.1 KiB
Makefile
all: libcrypto.a
|
|
|
|
clean:
|
|
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libcrypto.a
|
|
|
|
install:
|
|
@echo Nothing to be made.
|
|
|
|
|
|
include ../lib.rules
|
|
|
|
CFLAGS += -DCONFIG_CRYPTO_INTERNAL
|
|
CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
|
|
CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER
|
|
#CFLAGS += -DALL_DH_GROUPS
|
|
CFLAGS += -DCONFIG_SHA256
|
|
|
|
LIB_OBJS= \
|
|
aes-cbc.o \
|
|
aes-ccm.o \
|
|
aes-ctr.o \
|
|
aes-eax.o \
|
|
aes-encblock.o \
|
|
aes-gcm.o \
|
|
aes-internal.o \
|
|
aes-internal-dec.o \
|
|
aes-internal-enc.o \
|
|
aes-omac1.o \
|
|
aes-unwrap.o \
|
|
aes-wrap.o \
|
|
des-internal.o \
|
|
dh_group5.o \
|
|
dh_groups.o \
|
|
md4-internal.o \
|
|
md5.o \
|
|
md5-internal.o \
|
|
milenage.o \
|
|
ms_funcs.o \
|
|
rc4.o \
|
|
sha1.o \
|
|
sha1-internal.o \
|
|
sha1-pbkdf2.o \
|
|
sha1-prf.o \
|
|
sha1-tlsprf.o \
|
|
sha1-tprf.o \
|
|
sha256.o \
|
|
sha256-prf.o \
|
|
sha256-tlsprf.o \
|
|
sha256-internal.o
|
|
|
|
LIB_OBJS += crypto_internal.o
|
|
LIB_OBJS += crypto_internal-cipher.o
|
|
LIB_OBJS += crypto_internal-modexp.o
|
|
LIB_OBJS += crypto_internal-rsa.o
|
|
LIB_OBJS += tls_internal.o
|
|
LIB_OBJS += fips_prf_internal.o
|
|
LIB_OBJS += random.o
|
|
|
|
|
|
libcrypto.a: $(LIB_OBJS)
|
|
$(AR) crT $@ $?
|
|
|
|
-include $(OBJS:%.o=%.d)
|