mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
58
security/nss/tests/cipher/cipher.sh
Normal file → Executable file
58
security/nss/tests/cipher/cipher.sh
Normal file → Executable file
|
|
@ -52,6 +52,22 @@ cipher_init()
|
|||
fi
|
||||
}
|
||||
|
||||
############################## cipher_ecdsa #############################
|
||||
# local shell function to test NSS ciphers
|
||||
# it is a modified version of the cipher_main function
|
||||
# the function does not use the -1 -2 offsets
|
||||
# because ./bltest -T -m ecdsa -S -d returns the self-test of all test vectors provided
|
||||
########################################################################
|
||||
cipher_ecdsa()
|
||||
{
|
||||
echo "bltest -T -m $PARAM -d $CIPHERTESTDIR"
|
||||
${PROFTOOL} ${BINDIR}/bltest${PROG_SUFFIX} -T -m $PARAM -d $CIPHERTESTDIR
|
||||
if [ $? -ne 0 ]; then
|
||||
html_msg 1 $EXP_RET "$TESTNAME"
|
||||
echo "$failedStr"
|
||||
fi
|
||||
}
|
||||
|
||||
############################## cipher_main #############################
|
||||
# local shell function to test NSS ciphers
|
||||
########################################################################
|
||||
|
|
@ -64,27 +80,31 @@ cipher_main()
|
|||
TESTNAME=`echo $TESTNAME | sed -e "s/_/ /g"`
|
||||
echo "$SCRIPTNAME: $TESTNAME --------------------------------"
|
||||
failedStr=""
|
||||
inOff=0
|
||||
res=0
|
||||
while [ $inOff -lt 8 ]
|
||||
do
|
||||
outOff=0
|
||||
while [ $outOff -lt 8 ]
|
||||
do
|
||||
echo "bltest -T -m $PARAM -d $CIPHERTESTDIR -1 $inOff -2 $outOff"
|
||||
${PROFTOOL} ${BINDIR}/bltest${PROG_SUFFIX} -T -m $PARAM -d $CIPHERTESTDIR -1 $inOff -2 $outOff
|
||||
if [ $? -ne 0 ]; then
|
||||
failedStr="$failedStr[$inOff:$outOff]"
|
||||
fi
|
||||
outOff=`expr $outOff + 1`
|
||||
done
|
||||
inOff=`expr $inOff + 1`
|
||||
done
|
||||
if [ -n "$failedStr" ]; then
|
||||
html_msg 1 $EXP_RET "$TESTNAME (Failed in/out offset pairs:" \
|
||||
" $failedStr)"
|
||||
if [[ "$TESTNAME" == "ECDSA Sign" || "$TESTNAME" == "ECDSA Verify" ]] ; then
|
||||
cipher_ecdsa
|
||||
else
|
||||
html_msg $res $EXP_RET "$TESTNAME"
|
||||
inOff=0
|
||||
while [ $inOff -lt 8 ]
|
||||
do
|
||||
outOff=0
|
||||
while [ $outOff -lt 8 ]
|
||||
do
|
||||
echo "bltest -T -m $PARAM -d $CIPHERTESTDIR -1 $inOff -2 $outOff"
|
||||
${PROFTOOL} ${BINDIR}/bltest${PROG_SUFFIX} -T -m $PARAM -d $CIPHERTESTDIR -1 $inOff -2 $outOff
|
||||
if [ $? -ne 0 ]; then
|
||||
failedStr="$failedStr[$inOff:$outOff]"
|
||||
fi
|
||||
outOff=`expr $outOff + 1`
|
||||
done
|
||||
inOff=`expr $inOff + 1`
|
||||
done
|
||||
if [ -n "$failedStr" ]; then
|
||||
html_msg 1 $EXP_RET "$TESTNAME (Failed in/out offset pairs:" \
|
||||
" $failedStr)"
|
||||
else
|
||||
html_msg $res $EXP_RET "$TESTNAME"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done < ${CIPHER_TXT}
|
||||
|
|
|
|||
|
|
@ -48,10 +48,12 @@
|
|||
0 rsa_-K RSA_Populate
|
||||
0 dsa_-S DSA_Sign
|
||||
0 dsa_-V DSA_Verify
|
||||
0 ecdsa_-S ECDSA_Sign
|
||||
0 ecdsa_-V ECDSA_Verify
|
||||
0 md2_-H MD2_Hash
|
||||
0 md5_-H MD5_Hash
|
||||
0 sha1_-H SHA1_Hash
|
||||
0 sha224_-H SHA224_Hash
|
||||
0 sha256_-H SHA256_Hash
|
||||
0 sha384_-H SHA384_Hash
|
||||
0 sha512_-H SHA512_Hash
|
||||
0 sha512_-H SHA512_Hash
|
||||
0
security/nss/tests/cipher/performance.sh
Normal file → Executable file
0
security/nss/tests/cipher/performance.sh
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue