From: Andy Polyakov Date: Thu, 2 Jun 2005 19:15:15 +0000 (+0000) Subject: fips/*/Makefile updates to accomodate new VSes. X-Git-Tag: FIPS_TEST_9~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d8930019188885c987c60905c09c0baf4b77ad66;p=oweals%2Fopenssl.git fips/*/Makefile updates to accomodate new VSes. --- diff --git a/fips/des/Makefile b/fips/des/Makefile index 4a73ac227b..7526c0af5c 100644 --- a/fips/des/Makefile +++ b/fips/des/Makefile @@ -72,17 +72,9 @@ fips_desmovs: fips_desmovs.o $(TOP)/libcrypto.a TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_desmovs fips_test: top_fips_desmovs - find ../testvectors/des/req -name '*.req' > testlist - -rm -rf ../testvectors/des/rsp - mkdir ../testvectors/des/rsp - ./fips_desmovs -d testlist - find ../testvectors/des2/req -name '*.req' > testlist - -rm -rf ../testvectors/des2/rsp - mkdir ../testvectors/des2/rsp - ./fips_desmovs -d testlist - find ../testvectors/des3/req -name '*.req' > testlist - -rm -rf ../testvectors/des3/rsp - mkdir ../testvectors/des3/rsp + find ../testvectors/tdes/req -name '*.req' > testlist + -rm -rf ../testvectors/tdes/rsp + mkdir ../testvectors/tdes/rsp ./fips_desmovs -d testlist lint: diff --git a/fips/rand/Makefile b/fips/rand/Makefile index 046be1cce8..ccdc1ec517 100644 --- a/fips/rand/Makefile +++ b/fips/rand/Makefile @@ -75,8 +75,8 @@ A=../testvectors/rng/rsp fips_test: top_fips_rngvs -rm -rf $(A) mkdir $(A) - ./fips_rngvs mct < $(Q)/MCT.req > $(A)/MCT.rsp - ./fips_rngvs vst < $(Q)/VST.req > $(A)/VST.rsp + ./fips_rngvs mct < $(Q)/ANSI931_TDES2MCT.req > $(A)/ANSI931_TDES2MCT.rsp + ./fips_rngvs vst < $(Q)/ANSI931_TDES2VST.req > $(A)/ANSI931_TDES2VST.rsp lint: lint -DLINT $(INCLUDES) $(SRC)>fluff diff --git a/fips/sha/Makefile b/fips/sha/Makefile index a99bcdb48f..711b09eb05 100644 --- a/fips/sha/Makefile +++ b/fips/sha/Makefile @@ -79,10 +79,31 @@ fips_shatest: fips_shatest.o $(TOP)/libcrypto.a $(CC) $(CFLAGS) -o fips_shatest fips_shatest.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS) TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_shatest +Q=../testvectors/sha/req +A=../testvectors/sha/rsp + +VECTORS = SHA1LongMsg \ + SHA1Monte \ + SHA1ShortMsg \ + SHA224LongMsg \ + SHA224Monte \ + SHA224ShortMsg \ + SHA256LongMsg \ + SHA256Monte \ + SHA256ShortMsg \ + SHA384LongMsg \ + SHA384Monte \ + SHA384ShortMsg \ + SHA512LongMsg \ + SHA512Monte \ + SHA512ShortMsg + fips_test: top_fips_shatest - -rm -rf ../testvectors/sha/rsp - mkdir ../testvectors/sha/rsp - ./fips_shatest ../testvectors/sha/req/sha.req > ../testvectors/sha/rsp/sha.rsp + -rm -rf $(A) + mkdir $(A) + for file in $(VECTORS); do \ + ./fips_shatest $(Q)/$$file.req $(A)/$$file.rsp; \ + done lint: lint -DLINT $(INCLUDES) $(SRC)>fluff