From be5cebe63e42ca7f004cad4d9f29e2fa6b235909 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 1 Nov 2013 19:15:27 +0700 Subject: Fix length in ShiftLeft --- crypto/src/crypto/macs/CMac.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src') 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) { -- cgit 1.5.1