From 086e40845598fde1d17d2f14eed377c63178c0f3 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 21 Jan 2014 10:46:29 +0100 Subject: Added SHA1, RIPEMD160 for signature verification --- .../at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedVerifier.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'signature-standards/sigs-pkcs7detached/src/main/java/at/gv') diff --git a/signature-standards/sigs-pkcs7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedVerifier.java b/signature-standards/sigs-pkcs7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedVerifier.java index 40714e7a..41d8f902 100644 --- a/signature-standards/sigs-pkcs7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedVerifier.java +++ b/signature-standards/sigs-pkcs7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedVerifier.java @@ -8,7 +8,6 @@ import iaik.cms.SignerInfo; import iaik.x509.X509Certificate; import java.io.ByteArrayInputStream; -import java.io.FileOutputStream; import java.security.SignatureException; import java.util.ArrayList; import java.util.Date; @@ -40,7 +39,7 @@ public class PKCS7DetachedVerifier implements IVerifyFilter { List result = new ArrayList(); SignedData signedData = new SignedData(contentData, new AlgorithmID[] { - AlgorithmID.sha256 + AlgorithmID.sha256, AlgorithmID.sha1, AlgorithmID.ripeMd160, AlgorithmID.ripeMd160_ISO }); ContentInfo ci = new ContentInfo(new ByteArrayInputStream( signatureContent)); -- cgit v1.2.3