Replace NSS with Pale Moon's

This commit is contained in:
wuggy 2026-06-29 21:29:25 +01:00
commit 8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions

View file

@ -2,7 +2,7 @@ These scripts are used to run fipstest on a directory of CAVS vectors.
individual cipher scripts:
aesgcm.sh aes.sh dsa.sh ecdsa.sh hmac.sh ike.sh kas.sh
rng.sh rsa.sh sha.sh tdea.sh tls.sh
kbkdf.sh rng.sh rsa.sh sha.sh tdea.sh tls.sh
Each individual cipher script handles all the tests in a particular directory.
The scripts have 2 modes:

0
security/nss/tests/fips/cavs_scripts/aes.sh Normal file → Executable file
View file

0
security/nss/tests/fips/cavs_scripts/aesgcm.sh Normal file → Executable file
View file

0
security/nss/tests/fips/cavs_scripts/dsa.sh Normal file → Executable file
View file

0
security/nss/tests/fips/cavs_scripts/ecdsa.sh Normal file → Executable file
View file

0
security/nss/tests/fips/cavs_scripts/hmac.sh Normal file → Executable file
View file

0
security/nss/tests/fips/cavs_scripts/ike.sh Normal file → Executable file
View file

0
security/nss/tests/fips/cavs_scripts/kas.sh Normal file → Executable file
View file

View file

@ -0,0 +1,41 @@
#!/bin/sh
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# A Bourne shell script for running the NIST SHA Algorithm Validation Suite
#
# Before you run the script, set your PATH, LD_LIBRARY_PATH, ... environment
# variables appropriately so that the fipstest command and the NSPR and NSS
# shared libraries/DLLs are on the search path. Then run this script in the
# directory where the REQUEST (.req) files reside. The script generates the
# RESPONSE (.rsp) files in the same directory.
BASEDIR=${1-.}
TESTDIR=${BASEDIR}/KBKDF
COMMAND=${2-run}
REQDIR=${TESTDIR}/req
RSPDIR=${TESTDIR}/resp
all_requests="
KBKDFCounter.req
"
if [ ${COMMAND} = "verify" ]; then
result=0
for request in $all_requests; do
sh ./validate1.sh ${TESTDIR} $request
last_result=$?
result=`expr $result + $last_result`
done
exit $result
fi
test -d "${RSPDIR}" || mkdir "${RSPDIR}"
for request in $all_requests; do
response=`echo $request | sed -e "s/req/rsp/"`
echo $request $response
fipstest kbkdf ${REQDIR}/$request > ${RSPDIR}/$response
done
exit 0

0
security/nss/tests/fips/cavs_scripts/rng.sh Normal file → Executable file
View file

0
security/nss/tests/fips/cavs_scripts/rsa.sh Normal file → Executable file
View file

2
security/nss/tests/fips/cavs_scripts/runtest.sh Normal file → Executable file
View file

@ -6,7 +6,7 @@
#
TESTDIR=${1-.}
COMMAND=${2-run}
DEFAULT_TESTS="aes aesgcm dsa ecdsa hmac kas tls ike rng rsa sha tdea"
DEFAULT_TESTS="aes aesgcm dsa ecdsa hmac kas kbkdf tls ike rng rsa sha tdea"
shift;
shift;
TESTS=${@-$DEFAULT_TESTS}

0
security/nss/tests/fips/cavs_scripts/sha.sh Normal file → Executable file
View file

0
security/nss/tests/fips/cavs_scripts/tdea.sh Normal file → Executable file
View file

0
security/nss/tests/fips/cavs_scripts/tls.sh Normal file → Executable file
View file

0
security/nss/tests/fips/cavs_scripts/validate.sh Normal file → Executable file
View file

0
security/nss/tests/fips/cavs_scripts/validate1.sh Normal file → Executable file
View file