nss: import at 3.0.1 beta 1
[mozilla-nss.git] / security / nss / cmd / fipstest / hmac.sh
blobace988c7f83099f01842b6997633df4bca6e468b
1 #!/bin/sh
3 # A Bourne shell script for running the NIST HMAC 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 hmac_requests="
12 HMAC.req
15 for request in $hmac_requests; do
16 response=`echo $request | sed -e "s/req/rsp/"`
17 echo $request $response
18 fipstest hmac $request > $response
19 done