1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/cmd/fipstest/ecdsa.sh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +#!/bin/sh 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +# 1.10 +# A Bourne shell script for running the NIST ECDSA Validation System 1.11 +# 1.12 +# Before you run the script, set your PATH, LD_LIBRARY_PATH, ... environment 1.13 +# variables appropriately so that the fipstest command and the NSPR and NSS 1.14 +# shared libraries/DLLs are on the search path. Then run this script in the 1.15 +# directory where the REQUEST (.req) files reside. The script generates the 1.16 +# RESPONSE (.rsp) files in the same directory. 1.17 + 1.18 +request=KeyPair.req 1.19 +response=`echo $request | sed -e "s/req/rsp/"` 1.20 +echo $request $response 1.21 +fipstest ecdsa keypair $request > $response 1.22 + 1.23 +request=PKV.req 1.24 +response=`echo $request | sed -e "s/req/rsp/"` 1.25 +echo $request $response 1.26 +fipstest ecdsa pkv $request > $response 1.27 + 1.28 +request=SigGen.req 1.29 +response=`echo $request | sed -e "s/req/rsp/"` 1.30 +echo $request $response 1.31 +fipstest ecdsa siggen $request > $response 1.32 + 1.33 +request=SigVer.req 1.34 +response=`echo $request | sed -e "s/req/rsp/"` 1.35 +echo $request $response 1.36 +fipstest ecdsa sigver $request > $response