Blame SOURCES/gnutls-3.3.29-tests-pkcs11-increase-RSA-gen-size.patch

17c662
diff --git a/tests/testpkcs11.sh b/tests/testpkcs11.sh
17c662
index 7c2776760..cf82c4032 100755
17c662
--- a/tests/testpkcs11.sh
17c662
+++ b/tests/testpkcs11.sh
17c662
@@ -26,11 +26,6 @@ SERV="${SERV:-../src/gnutls-serv${EXEEXT}}"
17c662
 CLI="${CLI:-../src/gnutls-cli${EXEEXT}}"
17c662
 RETCODE=0
17c662
 
17c662
-if test "${GNUTLS_FORCE_FIPS_MODE}" = 1;then
17c662
-	echo "Cannot run in FIPS140-2 mode"
17c662
-	exit 77
17c662
-fi
17c662
-
17c662
 if ! test -x "${P11TOOL}"; then
17c662
 	exit 77
17c662
 fi
17c662
@@ -600,7 +595,8 @@ write_certificate_id_test_rsa () {
17c662
 	cacert="$4"
17c662
 
17c662
 	echo -n "* Generating RSA private key on HSM... "
17c662
-	${P11TOOL} ${ADDITIONAL_PARAM} --login --label xxx1-rsa --generate-rsa --bits 1024 "${token}" >>"${TMPFILE}" 2>&1
17c662
+	${P11TOOL} ${ADDITIONAL_PARAM} --login --label xxx1-rsa --generate-rsa \
17c662
+	--bits 2048 "${token}" >>"${TMPFILE}" 2>&1
17c662
 	if test $? = 0; then
17c662
 		echo ok
17c662
 	else
17c662
@@ -649,7 +645,8 @@ write_certificate_id_test_rsa2 () {
17c662
 	tmpkey="key.$$.tmp"
17c662
 
17c662
 	echo -n "* Generating RSA private key... "
17c662
-	${CERTTOOL} ${ADDITIONAL_PARAM} --generate-privkey --bits 1024 --outfile ${tmpkey} >>"${TMPFILE}" 2>&1
17c662
+	${CERTTOOL} ${ADDITIONAL_PARAM} --generate-privkey --bits 2048 \
17c662
+	--outfile ${tmpkey} >>"${TMPFILE}" 2>&1
17c662
 	if test $? = 0; then
17c662
 		echo ok
17c662
 	else
17c662
@@ -907,7 +904,7 @@ delete_temp_privkey "${TOKEN}" "${GNUTLS_PIN}" ecc-256
17c662
 import_temp_dsa_privkey "${TOKEN}" "${GNUTLS_PIN}" 2048
17c662
 delete_temp_privkey "${TOKEN}" "${GNUTLS_PIN}" dsa-2048
17c662
 
17c662
-generate_rsa_privkey "${TOKEN}" "${GNUTLS_PIN}" 1024
17c662
+generate_rsa_privkey "${TOKEN}" "${GNUTLS_PIN}" 2048
17c662
 change_id_of_privkey "${TOKEN}" "${GNUTLS_PIN}"
17c662
 export_pubkey_of_privkey "${TOKEN}" "${GNUTLS_PIN}"
17c662
 change_label_of_privkey "${TOKEN}" "${GNUTLS_PIN}"
17c662
-- 
17c662
2.14.3
17c662