diff options
Diffstat (limited to 'pkix/src')
-rw-r--r-- | pkix/src/main/java/org/bouncycastle/cms/CMSAuthenticatedGenerator.java | 3 |
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; } } |