glen.beasley%sun.com 62b8622611 318964 implement HMAC algorithm tests for FIPS 140-2 validation r=Wan-teh
git-svn-id: svn://10.0.0.236/trunk@186167 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-16 16:57:49 +00:00

21 lines
663 B
Bash
Executable File

#!/bin/sh
#
# A Bourne shell script for running the NIST HMAC Algorithm Validation Suite
#
# Before you run the script, set your PATH, LD_LIBRARY_PATH, ... environment
# variables appropriately so that the fipstest command and the NSPR and NSS
# shared libraries/DLLs are on the search path. Then run this script in the
# directory where the REQUEST (.req) files reside. The script generates the
# RESPONSE (.rsp) files in the same directory.
hmac_requests="
HMAC.req
"
for request in $hmac_requests; do
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
fipstest hmac $request > $response
done