summaryrefslogtreecommitdiff
path: root/bkucommon/src/main/java
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2013-12-09 18:20:10 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2013-12-09 18:20:10 +0000
commitcb6059e62437792a54330a0aa72a2eb7901cd39f (patch)
tree35a539eaed61c7f60015dac32c077df814a7b987 /bkucommon/src/main/java
parentfa461bc8f9c601873af0b81d643439de927b2d4a (diff)
downloadmocca-cb6059e62437792a54330a0aa72a2eb7901cd39f.tar.gz
mocca-cb6059e62437792a54330a0aa72a2eb7901cd39f.tar.bz2
mocca-cb6059e62437792a54330a0aa72a2eb7901cd39f.zip
Only use plain ECDSA signature variant for RIPEMD160
According to Signaturverordnung 2008 git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1241 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/main/java')
-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 9f97e363..2c23f05b 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
@@ -228,16 +228,16 @@ public class Signature {
}
if (useStrongHash && fieldSize >= 512) {
- signatureAlgorithm = AlgorithmID.ecdsa_plain_With_SHA512;
+ signatureAlgorithm = AlgorithmID.ecdsa_With_SHA512;
digestAlgorithm = AlgorithmID.sha512;
} else if (useStrongHash && fieldSize >= 256) {
- signatureAlgorithm = AlgorithmID.ecdsa_plain_With_SHA256;
+ signatureAlgorithm = AlgorithmID.ecdsa_With_SHA256;
digestAlgorithm = AlgorithmID.sha256;
} else if (useStrongHash) {
signatureAlgorithm = AlgorithmID.ecdsa_plain_With_RIPEMD160;
digestAlgorithm = AlgorithmID.ripeMd160;
} else {
- signatureAlgorithm = AlgorithmID.ecdsa_plain_With_SHA1;
+ signatureAlgorithm = AlgorithmID.ecdsa_With_SHA1;
digestAlgorithm = AlgorithmID.sha1;
}
} else {