mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-07 12:44:03 -05:00
Add test-tls program that can be used for fuzzing the internal TLS client and server implementations. This tool can write client or server messages into a file as an initialization step and for the fuzzing step, that file (with potential modifications) can be used to replace the internally generated message contents. The TEST_FUZZ=y build parameter is used to make a special build where a hardcoded random number generator and hardcoded timestamp are used to force deterministic behavior for the TLS operations. Signed-off-by: Jouni Malinen <j@w1.fi>
74 lines
1.3 KiB
Makefile
74 lines
1.3 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
|
|
CFLAGS += -DCONFIG_SHA384
|
|
CFLAGS += -DCONFIG_HMAC_SHA384_KDF
|
|
CFLAGS += -DCONFIG_INTERNAL_SHA384
|
|
|
|
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-siv.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 \
|
|
sha384.o \
|
|
sha384-prf.o \
|
|
sha384-internal.o \
|
|
sha512-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
|
|
ifndef TEST_FUZZ
|
|
LIB_OBJS += random.o
|
|
endif
|
|
|
|
|
|
libcrypto.a: $(LIB_OBJS)
|
|
$(AR) crT $@ $?
|
|
|
|
-include $(OBJS:%.o=%.d)
|