X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=f97aac2f5a81403eae0b8332cbf87a06a0d2a5c8;hb=c2dc8626698392f759806317afbcbe6c70686e1f;hp=ba2c95f69fd42b913068a4766c0813c1d7b939ac;hpb=094fa8c1bc2e27a560833c6a829b1d9b60de7034;p=zpackage diff --git a/Makefile b/Makefile index ba2c95f..f97aac2 100644 --- a/Makefile +++ b/Makefile @@ -364,17 +364,9 @@ tfm.o: $(addprefix tomsfastmath/src/, $(TFMOBJ)) LTCOBJ= \ ciphers/aes/aes.o \ - ciphers/blowfish.o \ - ciphers/cast5.o \ - ciphers/des.o \ - ciphers/rc2.o \ ciphers/rc5.o \ ciphers/rc6.o \ - ciphers/safer/safer.o \ - ciphers/safer/saferp.o \ - ciphers/skipjack.o \ ciphers/twofish/twofish.o \ - ciphers/xtea.o \ encauth/ccm/ccm_add_aad.o \ encauth/ccm/ccm_add_nonce.o \ encauth/ccm/ccm_done.o \ @@ -392,14 +384,6 @@ LTCOBJ= \ encauth/chachapoly/chacha20poly1305_setiv.o \ encauth/chachapoly/chacha20poly1305_setiv_rfc7905.o \ encauth/chachapoly/chacha20poly1305_test.o \ - encauth/eax/eax_addheader.o \ - encauth/eax/eax_decrypt.o \ - encauth/eax/eax_decrypt_verify_memory.o \ - encauth/eax/eax_done.o \ - encauth/eax/eax_encrypt.o \ - encauth/eax/eax_encrypt_authenticate_memory.o \ - encauth/eax/eax_init.o \ - encauth/eax/eax_test.o \ encauth/gcm/gcm_add_aad.o \ encauth/gcm/gcm_add_iv.o \ encauth/gcm/gcm_done.o \ @@ -413,31 +397,8 @@ LTCOBJ= \ misc/crypt/crypt_find_cipher_id.o \ misc/crypt/crypt_find_hash_any.o \ misc/crypt/crypt_find_hash.o \ - encauth/ocb/ocb_decrypt.o \ - encauth/ocb/ocb_decrypt_verify_memory.o \ - encauth/ocb/ocb_done_decrypt.o \ - encauth/ocb/ocb_done_encrypt.o \ misc/crypt/crypt_find_hash_id.o \ misc/crypt/crypt_find_hash_oid.o \ - encauth/ocb/ocb_encrypt.o \ - encauth/ocb/ocb_encrypt_authenticate_memory.o \ - encauth/ocb/ocb_init.o \ - encauth/ocb/ocb_ntz.o \ - encauth/ocb/ocb_shift_xor.o \ - encauth/ocb/ocb_test.o \ - encauth/ocb/s_ocb_done.o \ - encauth/ocb3/ocb3_add_aad.o \ - encauth/ocb3/ocb3_decrypt.o \ - encauth/ocb3/ocb3_decrypt_last.o \ - encauth/ocb3/ocb3_decrypt_verify_memory.o \ - encauth/ocb3/ocb3_done.o \ - encauth/ocb3/ocb3_encrypt.o \ - encauth/ocb3/ocb3_encrypt_authenticate_memory.o \ - encauth/ocb3/ocb3_encrypt_last.o \ - encauth/ocb3/ocb3_init.o \ - encauth/ocb3/ocb3_int_ntz.o \ - encauth/ocb3/ocb3_int_xor_blocks.o \ - encauth/ocb3/ocb3_test.o \ hashes/blake2b.o \ hashes/blake2s.o \ hashes/chc/chc.o \ @@ -450,11 +411,9 @@ LTCOBJ= \ hashes/rmd256.o \ hashes/rmd320.o \ hashes/sha1.o \ - hashes/sha2/sha224.o \ hashes/sha2/sha256.o \ hashes/sha2/sha384.o \ hashes/sha2/sha512.o \ - hashes/sha2/sha512_224.o \ hashes/sha2/sha512_256.o \ hashes/sha3.o \ hashes/sha3_test.o \ @@ -728,23 +687,50 @@ LTCOBJ= \ pk/rsa/rsa_verify_hash.o \ prngs/chacha20.o \ prngs/fortuna.o \ - prngs/rc4.o \ prngs/rng_get_bytes.o \ prngs/rng_make_prng.o \ prngs/sprng.o \ - prngs/yarrow.o \ stream/chacha/chacha_crypt.o \ stream/chacha/chacha_done.o \ stream/chacha/chacha_ivctr32.o \ stream/chacha/chacha_ivctr64.o \ stream/chacha/chacha_keystream.o \ stream/chacha/chacha_setup.o \ - stream/chacha/chacha_test.o \ - stream/rc4/rc4_stream.o \ - stream/rc4/rc4_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 + stream/chacha/chacha_test.o + +libtomcrypt/%.o: CFLAGS+= -Isrc/headers -Itomsfastmath/src/headers -DARGTYPE=4 -Ilibtomcrypt/src/headers +libtomcrypt/%.o: CFLAGS+= \ + -DTFM_DESC \ + -DTFM_NO_ASM \ + -DLTC_NOTHING \ + -DLTC_NO_ASM \ + -DLTC_SOURCE \ + -DLTC_POLY1305 \ + -DLTC_CHACHA20POLY1305_MODE \ + -DLTC_RIJNDAEL \ + -DLTC_CHACHA \ + -DLTC_ECB_MODE \ + -DLTC_CBC_MODE \ + -DLTC_CTR_MODE \ + -DLTC_GCM_MODE \ + -DLTC_SHA1 \ + -DLTC_SHA3 \ + -DLTC_SHA512 \ + -DLTC_SHA384 \ + -DLTC_SHA256 \ + -DLTC_HASH_HELPERS \ + -DLTC_HMAC \ + -DLTC_OMAC \ + -DLTC_CCM_MODE \ + -DLTC_SPRNG \ + -DLTC_DEVRANDOM \ + -DLTC_TRY_URANDOM_FIRST \ + -DLTC_RNG_GET_BYTES \ + -DLTC_RNG_MAKE_PRNG \ + -DLTC_DER \ + -DLTC_MRSA \ + -DLTC_MECC \ + -DLTC_BASE64 tomclean: rm -f $(addprefix libtomcrypt/src/, $(LTCOBJ))