summary refs log tree commit diff
path: root/crypto/src/pkcs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2013-12-18 18:56:32 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-12-18 18:56:32 +0700
commitdb9067c0417531b339b5acf7dc923c0f26f2811f (patch)
treef189a34ee202295447e41d67b59a2dab20a2b748 /crypto/src/pkcs
parentClean up all the special handling for IDEA stuff, back to a single release as... (diff)
downloadBouncyCastle.NET-ed25519-db9067c0417531b339b5acf7dc923c0f26f2811f.tar.xz
Factor out variation of MacUtilities.DoFinal
Diffstat (limited to 'crypto/src/pkcs')
-rw-r--r--crypto/src/pkcs/Pkcs12Store.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/pkcs/Pkcs12Store.cs b/crypto/src/pkcs/Pkcs12Store.cs
index 6718aea10..55f20206a 100644
--- a/crypto/src/pkcs/Pkcs12Store.cs
+++ b/crypto/src/pkcs/Pkcs12Store.cs
@@ -1132,8 +1132,7 @@ namespace Org.BouncyCastle.Pkcs
 
             IMac mac = (IMac) PbeUtilities.CreateEngine(oid);
             mac.Init(cipherParams);
-            mac.BlockUpdate(data, 0, data.Length);
-            return MacUtilities.DoFinal(mac);
+            return MacUtilities.DoFinal(mac, data);
         }
 
         private static byte[] CryptPbeData(