Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2014-07-25 15:07:46 +0400
committerDavid Hook <dgh@cryptoworkshop.com>2014-07-25 15:07:46 +0400
commit0c355df80e54af5d5b8573b07888096b83a3da9e (patch)
tree80245b157cb6439ccb5e23cd5ab1f77ecc44a4d6
parent3ffb9534f1f2346a27e24014a0dbd6674f3754c9 (diff)
Earlier JDK compatibility updates
-rw-r--r--pkix/src/main/java/org/bouncycastle/cms/CMSAuthenticatedGenerator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkix/src/main/java/org/bouncycastle/cms/CMSAuthenticatedGenerator.java b/pkix/src/main/java/org/bouncycastle/cms/CMSAuthenticatedGenerator.java
index 4022c8ee..6aadf1ec 100644
--- a/pkix/src/main/java/org/bouncycastle/cms/CMSAuthenticatedGenerator.java
+++ b/pkix/src/main/java/org/bouncycastle/cms/CMSAuthenticatedGenerator.java
@@ -5,6 +5,7 @@ import java.util.Map;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
+import org.bouncycastle.util.Arrays;
public class CMSAuthenticatedGenerator
extends CMSEnvelopedGenerator
@@ -34,7 +35,7 @@ public class CMSAuthenticatedGenerator
Map param = new HashMap();
param.put(CMSAttributeTableGenerator.CONTENT_TYPE, contentType);
param.put(CMSAttributeTableGenerator.DIGEST_ALGORITHM_IDENTIFIER, digAlgId);
- param.put(CMSAttributeTableGenerator.DIGEST, hash.clone());
+ param.put(CMSAttributeTableGenerator.DIGEST, Arrays.clone(hash));
return param;
}
}