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

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