diff options
Diffstat (limited to 'src/modules/rijndael/ablowfish.cpp')
| -rw-r--r-- | src/modules/rijndael/ablowfish.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/rijndael/ablowfish.cpp b/src/modules/rijndael/ablowfish.cpp index 329da8bc8..914a51f5c 100644 --- a/src/modules/rijndael/ablowfish.cpp +++ b/src/modules/rijndael/ablowfish.cpp @@ -311,8 +311,8 @@ BlowFish::BlowFish(unsigned char* ucKey, unsigned int keysize, const SBlock& roC if(keysize<1) // throw exception("Incorrect key length"); return; - - + + //Check the Key - the key length should be between 1 and 56 bytes if(keysize>56) keysize = 56; @@ -338,7 +338,7 @@ BlowFish::BlowFish(unsigned char* ucKey, unsigned int keysize, const SBlock& roC iCount++; if(iCount == ((int)keysize)) { - //All bytes used, so recycle bytes + //All bytes used, so recycle bytes iCount = 0; p = aucLocalKey; } |
