summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2013-11-01 19:15:27 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-11-01 19:15:27 +0700
commitbe5cebe63e42ca7f004cad4d9f29e2fa6b235909 (patch)
treeddcee78f39c23ae2b84a1bbfc91e1f42473b5f1d
parentRestore dodgy file (diff)
downloadBouncyCastle.NET-ed25519-be5cebe63e42ca7f004cad4d9f29e2fa6b235909.tar.xz
Fix length in ShiftLeft
-rw-r--r--crypto/src/crypto/macs/CMac.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/macs/CMac.cs b/crypto/src/crypto/macs/CMac.cs
index b55a05605..682c12bac 100644
--- a/crypto/src/crypto/macs/CMac.cs
+++ b/crypto/src/crypto/macs/CMac.cs
@@ -107,7 +107,7 @@ namespace Org.BouncyCastle.Crypto.Macs
 
         private static int ShiftLeft(byte[] block, byte[] output)
         {
-            int i = 16;
+            int i = block.Length;
             uint bit = 0;
             while (--i >= 0)
             {