1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/cmd/fipstest/rsa.sh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 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 RSA 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 + 1.19 +request=SigGen15.req 1.20 +response=`echo $request | sed -e "s/req/rsp/"` 1.21 +echo $request $response 1.22 +fipstest rsa siggen $request > $response 1.23 + 1.24 +request=SigVer15.req 1.25 +response=`echo $request | sed -e "s/req/rsp/"` 1.26 +echo $request $response 1.27 +fipstest rsa sigver $request > $response