nss: import at 3.0.1 beta 1
[mozilla-nss.git] / security / nss / cmd / fipstest / rng.sh
blob4b62a998da054d7cd79aa251a06296deb339e679
1 #!/bin/sh
3 # A Bourne shell script for running the NIST RNG Validation Suite
5 # Before you run the script, set your PATH, LD_LIBRARY_PATH, ... environment
6 # variables appropriately so that the fipstest command and the NSPR and NSS
7 # shared libraries/DLLs are on the search path. Then run this script in the
8 # directory where the REQUEST (.req) files reside. The script generates the
9 # RESPONSE (.rsp) files in the same directory.
11 vst_requests="
12 FIPS186_VST.req
13 FIPS186_VSTGEN.req
15 mct_requests="
16 FIPS186_MCT.req
17 FIPS186_MCTGEN.req
20 for request in $vst_requests; do
21 response=`echo $request | sed -e "s/req/rsp/"`
22 echo $request $response
23 fipstest rng vst $request > $response
24 done
25 for request in $mct_requests; do
26 response=`echo $request | sed -e "s/req/rsp/"`
27 echo $request $response
28 fipstest rng mct $request > $response
29 done