2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 # A Bourne shell script for running the NIST AES Algorithm Validation Suite
9 # Before you run the script, set your PATH, LD_LIBRARY_PATH, ... environment
10 # variables appropriately so that the fipstest command and the NSPR and NSS
11 # shared libraries/DLLs are on the search path. Then run this script in the
12 # directory where the REQUEST (.req) files reside. The script generates the
13 # RESPONSE (.rsp) files in the same directory.
69 for request
in $ecb_kat_requests; do
70 response
=`echo $request | sed -e "s/req/rsp/"`
71 echo $request $response
72 fipstest aes kat ecb
$request > $response
74 for request
in $ecb_mmt_requests; do
75 response
=`echo $request | sed -e "s/req/rsp/"`
76 echo $request $response
77 fipstest aes mmt ecb
$request > $response
79 for request
in $ecb_mct_requests; do
80 response
=`echo $request | sed -e "s/req/rsp/"`
81 echo $request $response
82 fipstest aes mct ecb
$request > $response
84 for request
in $cbc_kat_requests; do
85 response
=`echo $request | sed -e "s/req/rsp/"`
86 echo $request $response
87 fipstest aes kat cbc
$request > $response
89 for request
in $cbc_mmt_requests; do
90 response
=`echo $request | sed -e "s/req/rsp/"`
91 echo $request $response
92 fipstest aes mmt cbc
$request > $response
94 for request
in $cbc_mct_requests; do
95 response
=`echo $request | sed -e "s/req/rsp/"`
96 echo $request $response
97 fipstest aes mct cbc
$request > $response