From 63f612194d58e21aa2f8828a3336d52f3fee60c6 Mon Sep 17 00:00:00 2001 From: Zdenek Zambersky Date: Wed, 30 Jul 2025 14:44:25 +0200 Subject: [PATCH] XMLSignatureFactoryTests: switch from DSA to RSA --- cryptotest/tests/XMLSignatureFactoryTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cryptotest/tests/XMLSignatureFactoryTests.java b/cryptotest/tests/XMLSignatureFactoryTests.java index def908f..dafc96a 100644 --- a/cryptotest/tests/XMLSignatureFactoryTests.java +++ b/cryptotest/tests/XMLSignatureFactoryTests.java @@ -100,10 +100,10 @@ protected void checkAlgorithm(Provider.Service service, String alias) throws Alg Collections.singletonList(factory.newTransform(Transform.ENVELOPED, (TransformParameterSpec)null)), null, null); SignedInfo si = factory.newSignedInfo(factory.newCanonicalizationMethod(CanonicalizationMethod.INCLUSIVE_WITH_COMMENTS, (XMLSignature)null), - factory.newSignatureMethod(SignatureMethod.DSA_SHA1, null), Collections.singletonList(ref)); + factory.newSignatureMethod(SignatureMethod.RSA_SHA1, null), Collections.singletonList(ref)); - KeyPairGenerator kpg = KeyPairGenerator.getInstance("DSA"); - kpg.initialize(512); + KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); + kpg.initialize(1024); KeyPair kp = kpg.generateKeyPair(); KeyInfoFactory kif = factory.getKeyInfoFactory();