security/nss/cmd/fipstest/dsa.sh

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/cmd/fipstest/dsa.sh	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     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 DSA 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 dsa keypair $request > $response
    1.22 +
    1.23 +request=PQGGen.req
    1.24 +response=`echo $request | sed -e "s/req/rsp/"`
    1.25 +echo $request $response
    1.26 +fipstest dsa pqggen $request > $response
    1.27 +
    1.28 +request=PQGVer.req
    1.29 +response=`echo $request | sed -e "s/req/rsp/"`
    1.30 +echo $request $response
    1.31 +fipstest dsa pqgver $request > $response
    1.32 +
    1.33 +request=SigGen.req
    1.34 +response=`echo $request | sed -e "s/req/rsp/"`
    1.35 +echo $request $response
    1.36 +fipstest dsa siggen $request > $response
    1.37 +
    1.38 +request=SigVer.req
    1.39 +response=`echo $request | sed -e "s/req/rsp/"`
    1.40 +echo $request $response
    1.41 +fipstest dsa sigver $request > $response

mercurial