security/nss/cmd/fipstest/rng.sh

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/cmd/fipstest/rng.sh	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     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 RNG Validation Suite
    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 +drbg_requests="
    1.19 +SHA256_DRBG.req
    1.20 +"
    1.21 +
    1.22 +for request in $drbg_requests; do
    1.23 +    response=`echo $request | sed -e "s/req/rsp/"`
    1.24 +    echo $request $response
    1.25 +    fipstest drbg $request > $response
    1.26 +done

mercurial