3 # A Bourne shell script for running the NIST SHA Algorithm 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 sha_ShortMsg_requests
="
18 sha_LongMsg_requests
="
31 for request
in $sha_ShortMsg_requests; do
32 response
=`echo $request | sed -e "s/req/rsp/"`
33 echo $request $response
34 fipstest sha
$request > $response
36 for request
in $sha_LongMsg_requests; do
37 response
=`echo $request | sed -e "s/req/rsp/"`
38 echo $request $response
39 fipstest sha
$request > $response
41 for request
in $sha_Monte_requests; do
42 response
=`echo $request | sed -e "s/req/rsp/"`
43 echo $request $response
44 fipstest sha
$request > $response