#!/bin/sh
echo testing FIPS 186 Ap. 3.1 SHA and DES G function general purpose RNG
echo VST...
testing/186vsttest < testing/RNG/req/FIPS186_VSTGEN.req > testing/RNG/resp/FIPS186_VSTGEN.rsp
diff testing/RNG/resp/FIPS186_VSTGEN.rsp testing/RNG/fax/FIPS186_VSTGEN.fax

echo MCT...
testing/186mcttest < testing/RNG/req/FIPS186_MCTGEN.req > testing/RNG/resp/FIPS186_MCTGEN.rsp
diff testing/RNG/resp/FIPS186_MCTGEN.rsp testing/RNG/fax/FIPS186_MCTGEN.fax
echo done testing FIPS 186 RNG

echo testing ANSI X9.31 A.2.4 RNG
echo VST...
testing/931vsttest < testing/RNG/req/ANSI931_VST.req > testing/RNG/resp/ANSI931_VST.rsp
diff testing/RNG/resp/ANSI931_VST.rsp testing/RNG/fax/ANSI931_VST.fax

echo MCT...
testing/931mcttest < testing/RNG/req/ANSI931_MCT.req > testing/RNG/resp/ANSI931_MCT.rsp
diff testing/RNG/resp/ANSI931_MCT.rsp testing/RNG/fax/ANSI931_MCT.fax
echo done testing ANSI X9.31 RNG

