aboutsummaryrefslogtreecommitdiff
path: root/signature-standards/sigs-pcks7detached/src/main/java/at/gv
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-11-28 14:25:29 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-11-28 14:25:29 +0100
commitd08cd566edccb8a748602c6f49667dca3f622331 (patch)
treeb78b8183369d32ce457aa1e45b03fb85233c68e5 /signature-standards/sigs-pcks7detached/src/main/java/at/gv
parent5225b6852938c91940e0b491286583aa263f61d5 (diff)
downloadpdf-as-4-d08cd566edccb8a748602c6f49667dca3f622331.tar.gz
pdf-as-4-d08cd566edccb8a748602c6f49667dca3f622331.tar.bz2
pdf-as-4-d08cd566edccb8a748602c6f49667dca3f622331.zip
start Refactoring
Diffstat (limited to 'signature-standards/sigs-pcks7detached/src/main/java/at/gv')
-rw-r--r--signature-standards/sigs-pcks7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedSigner.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/signature-standards/sigs-pcks7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedSigner.java b/signature-standards/sigs-pcks7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedSigner.java
index d90049a2..83df6a59 100644
--- a/signature-standards/sigs-pcks7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedSigner.java
+++ b/signature-standards/sigs-pcks7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedSigner.java
@@ -128,14 +128,6 @@ public class PKCS7DetachedSigner implements IPlainSigner {
// }
// }
// SubjectKeyID subjectKeyId = new SubjectKeyID(cert);
- try {
- MessageDigest md = MessageDigest.getInstance("SHA256", "IAIK");
- md.update(input);
- byte[] sha256 = md.digest();
- logger.info("Message digest: " + StringUtils.bytesToHexString(sha256));
- } catch (Exception e) {
- e.printStackTrace();
- }
IssuerAndSerialNumber issuer = new IssuerAndSerialNumber(cert);
SignerInfo signer1 = new SignerInfo(issuer, AlgorithmID.sha256,
AlgorithmID.ecdsa_plain_With_SHA256,