From d08cd566edccb8a748602c6f49667dca3f622331 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 28 Nov 2013 14:25:29 +0100 Subject: start Refactoring --- .../at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedSigner.java | 8 -------- 1 file changed, 8 deletions(-) (limited to 'signature-standards/sigs-pcks7detached/src/main/java/at') 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, -- cgit v1.2.3