summaryrefslogtreecommitdiff
path: root/bkucommon/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2013-12-10 21:03:33 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2013-12-10 21:03:33 +0000
commit162d5b77cd945b40682511221e03e30fe9566f45 (patch)
treef0b5b1374717d8f41ba396a885d97aaea454f7ba /bkucommon/src/main/java/at/gv/egiz
parent9cb5db8eacfe6bba50fe10a5a73389f30509df91 (diff)
downloadmocca-162d5b77cd945b40682511221e03e30fe9566f45.tar.gz
mocca-162d5b77cd945b40682511221e03e30fe9566f45.tar.bz2
mocca-162d5b77cd945b40682511221e03e30fe9566f45.zip
Don't use RIPEMD160 with RSA - not supported in XSecT
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1249 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main/java/at/gv/egiz')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/cms/Signature.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/cms/Signature.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/cms/Signature.java
index 749b0dbf..0b1f4602 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/cms/Signature.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/cms/Signature.java
@@ -210,9 +210,9 @@ public class Signature {
if (useStrongHash && keyLength >= 2048) {
signatureAlgorithm = AlgorithmID.sha256WithRSAEncryption;
digestAlgorithm = AlgorithmID.sha256;
- } else if (useStrongHash) {
- signatureAlgorithm = AlgorithmID.rsaSignatureWithRipemd160;
- digestAlgorithm = AlgorithmID.ripeMd160;
+// } else if (useStrongHash) { // Cannot be used if not enabled in AlgorithmMethodFactoryImpl
+// signatureAlgorithm = AlgorithmID.rsaSignatureWithRipemd160;
+// digestAlgorithm = AlgorithmID.ripeMd160;
} else {
signatureAlgorithm = AlgorithmID.sha1WithRSAEncryption;
digestAlgorithm = AlgorithmID.sha1;