summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-12-25 00:23:52 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-12-25 00:23:52 +0700
commitd23f5025d8281432258b906ab07dcf96db37703f (patch)
tree59606ee37faf854051d13876ef215a92c987a0f9 /crypto/src
parentMerge branch 'master' of git.bouncycastle.org:bc-csharp (diff)
downloadBouncyCastle.NET-ed25519-d23f5025d8281432258b906ab07dcf96db37703f.tar.xz
Fix VmpcMac to actually use offset in BlockUpdate()
- https://github.com/bcgit/bc-java/issues/127
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/crypto/macs/VMPCMac.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/macs/VMPCMac.cs b/crypto/src/crypto/macs/VMPCMac.cs
index 89916355c..6f2da075c 100644
--- a/crypto/src/crypto/macs/VMPCMac.cs
+++ b/crypto/src/crypto/macs/VMPCMac.cs
@@ -166,7 +166,7 @@ namespace Org.BouncyCastle.Crypto.Macs
 
 			for (int i = 0; i < len; i++)
 			{
-				Update(input[i]);
+				Update(input[inOff + i]);
 			}
 		}
 	}