nss: import at 3.0.1 beta 1
[mozilla-nss.git] / security / nss / cmd / fipstest / ecdsa.sh
blob306c8650f3a0f5cbd30ca2072f5a961654f4fb46
1 #!/bin/sh
3 # A Bourne shell script for running the NIST ECDSA Validation System
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 request=KeyPair.req
12 response=`echo $request | sed -e "s/req/rsp/"`
13 echo $request $response
14 fipstest ecdsa keypair $request > $response
16 request=PKV.req
17 response=`echo $request | sed -e "s/req/rsp/"`
18 echo $request $response
19 fipstest ecdsa pkv $request > $response
21 request=SigGen.req
22 response=`echo $request | sed -e "s/req/rsp/"`
23 echo $request $response
24 fipstest ecdsa siggen $request > $response
26 request=SigVer.req
27 response=`echo $request | sed -e "s/req/rsp/"`
28 echo $request $response
29 fipstest ecdsa sigver $request > $response