security/nss/cmd/fipstest/tdea.sh

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 #!/bin/sh
michael@0 2 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5
michael@0 6 #
michael@0 7 # A Bourne shell script for running the NIST tdea Algorithm Validation Suite
michael@0 8 #
michael@0 9 # Before you run the script, set your PATH, LD_LIBRARY_PATH, ... environment
michael@0 10 # variables appropriately so that the fipstest command and the NSPR and NSS
michael@0 11 # shared libraries/DLLs are on the search path. Then run this script in the
michael@0 12 # directory where the REQUEST (.req) files reside. The script generates the
michael@0 13 # RESPONSE (.rsp) files in the same directory.
michael@0 14
michael@0 15 #CBC_Known_Answer_tests
michael@0 16 #Initial Permutation KAT
michael@0 17 #Permutation Operation KAT
michael@0 18 #Subsitution Table KAT
michael@0 19 #Variable Key KAT
michael@0 20 #Variable PlainText KAT
michael@0 21 cbc_kat_requests="
michael@0 22 TCBCinvperm.req
michael@0 23 TCBCpermop.req
michael@0 24 TCBCsubtab.req
michael@0 25 TCBCvarkey.req
michael@0 26 TCBCvartext.req
michael@0 27 "
michael@0 28
michael@0 29 #CBC Monte Carlo KATs
michael@0 30 cbc_monte_requests="
michael@0 31 TCBCMonte1.req
michael@0 32 TCBCMonte2.req
michael@0 33 TCBCMonte3.req
michael@0 34 "
michael@0 35 #Multi-block Message KATs
michael@0 36 cbc_mmt_requests="
michael@0 37 TCBCMMT1.req
michael@0 38 TCBCMMT2.req
michael@0 39 TCBCMMT3.req
michael@0 40 "
michael@0 41
michael@0 42 ecb_kat_requests="
michael@0 43 TECBinvperm.req
michael@0 44 TECBpermop.req
michael@0 45 TECBsubtab.req
michael@0 46 TECBvarkey.req
michael@0 47 TECBvartext.req
michael@0 48 "
michael@0 49
michael@0 50 ecb_monte_requests="
michael@0 51 TECBMonte1.req
michael@0 52 TECBMonte2.req
michael@0 53 TECBMonte3.req
michael@0 54 "
michael@0 55
michael@0 56 ecb_mmt_requests="
michael@0 57 TECBMMT1.req
michael@0 58 TECBMMT2.req
michael@0 59 TECBMMT3.req
michael@0 60 "
michael@0 61
michael@0 62 for request in $ecb_mmt_requests; do
michael@0 63 response=`echo $request | sed -e "s/req/rsp/"`
michael@0 64 echo $request $response
michael@0 65 fipstest tdea mmt ecb $request > $response
michael@0 66 done
michael@0 67 for request in $ecb_kat_requests; do
michael@0 68 response=`echo $request | sed -e "s/req/rsp/"`
michael@0 69 echo $request $response
michael@0 70 fipstest tdea kat ecb $request > $response
michael@0 71 done
michael@0 72 for request in $ecb_monte_requests; do
michael@0 73 response=`echo $request | sed -e "s/req/rsp/"`
michael@0 74 echo $request $response
michael@0 75 fipstest tdea mct ecb $request > $response
michael@0 76 done
michael@0 77 for request in $cbc_mmt_requests; do
michael@0 78 response=`echo $request | sed -e "s/req/rsp/"`
michael@0 79 echo $request $response
michael@0 80 fipstest tdea mmt cbc $request > $response
michael@0 81 done
michael@0 82 for request in $cbc_kat_requests; do
michael@0 83 response=`echo $request | sed -e "s/req/rsp/"`
michael@0 84 echo $request $response
michael@0 85 fipstest tdea kat cbc $request > $response
michael@0 86 done
michael@0 87 for request in $cbc_monte_requests; do
michael@0 88 response=`echo $request | sed -e "s/req/rsp/"`
michael@0 89 echo $request $response
michael@0 90 fipstest tdea mct cbc $request > $response
michael@0 91 done

mercurial