From: Nathan Wagner Date: Sat, 6 Jul 2019 23:44:29 +0000 (+0000) Subject: remove md2 md4 md5 hashes X-Git-Url: https://pd.if.org/git/?a=commitdiff_plain;ds=sidebyside;h=27410df6ded2d78850397c159cbccff1a78012f2;p=zpackage remove md2 md4 md5 hashes --- diff --git a/Makefile b/Makefile index eeddc48..89ead07 100644 --- a/Makefile +++ b/Makefile @@ -452,9 +452,6 @@ LTCOBJ= \ hashes/helper/hash_filehandle.o \ hashes/helper/hash_memory.o \ hashes/helper/hash_memory_multi.o \ - hashes/md2.o \ - hashes/md4.o \ - hashes/md5.o \ hashes/rmd128.o \ hashes/rmd160.o \ hashes/rmd256.o \ @@ -772,6 +769,11 @@ LTCOBJ= \ stream/sober128/sober128_test.o libtomcrypt/%.o: CFLAGS+=-DTFM_DESC -Isrc/headers -Itomsfastmath/src/headers -DARGTYPE=4 -DLTC_NO_ASM -DTFM_NO_ASM -Ilibtomcrypt/src/headers -DLTC_SOURCE +libtomcrypt/%.o: CFLAGS+=-DLTC_EASY -DLTC_GCM_MODE + +tomclean: + rm -f $(addprefix libtomcrypt/src/, $(LTCOBJ)) + rm -f ltc.o ltc.o: $(addprefix libtomcrypt/src/, $(LTCOBJ)) ld -o $@ -r $+ diff --git a/crypto/tlse.c b/crypto/tlse.c index bbcb1b3..5274dba 100644 --- a/crypto/tlse.c +++ b/crypto/tlse.c @@ -451,8 +451,10 @@ static void tls_init() { #endif #endif /* TODO remove these */ +#if 0 register_hash(&md5_desc); register_hash(&sha1_desc); +#endif register_hash(&sha256_desc); register_hash(&sha384_desc);