aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-01-21 10:46:29 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-01-21 10:46:29 +0100
commit086e40845598fde1d17d2f14eed377c63178c0f3 (patch)
tree67abf7835fbc49f50ccec6772d47cea8d7f0cf0c
parentd1433270259506aa28193b5134027da543d375c3 (diff)
downloadpdf-as-4-086e40845598fde1d17d2f14eed377c63178c0f3.tar.gz
pdf-as-4-086e40845598fde1d17d2f14eed377c63178c0f3.tar.bz2
pdf-as-4-086e40845598fde1d17d2f14eed377c63178c0f3.zip
Added SHA1, RIPEMD160 for signature verification
-rw-r--r--signature-standards/sigs-pkcs7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedVerifier.java3
1 files changed, 1 insertions, 2 deletions
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<VerifyResult> result = new ArrayList<VerifyResult>();
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));