diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-11-01 19:15:27 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-11-01 19:15:27 +0700 |
commit | be5cebe63e42ca7f004cad4d9f29e2fa6b235909 (patch) | |
tree | ddcee78f39c23ae2b84a1bbfc91e1f42473b5f1d /crypto/src | |
parent | Restore dodgy file (diff) | |
download | BouncyCastle.NET-ed25519-be5cebe63e42ca7f004cad4d9f29e2fa6b235909.tar.xz |
Fix length in ShiftLeft
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/macs/CMac.cs | 2 |
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) { |