Skip to content

Commit 44ab9e1

Browse files
Merge pull request #87 from Particular/warnformat
2 parents 09c7476 + 4be139c commit 44ab9e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MessageProperty/RijndaelEncryptionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ static bool IsValidKey(byte[] key)
243243
var maxValidKeyBitLength = rijndael.LegalKeySizes.Max(keyLength => keyLength.MaxSize);
244244
if (bitLength < maxValidKeyBitLength)
245245
{
246-
Log.WarnFormat("Encryption key is {0} bits which is less than the maximum allowed {1} bits. Consider using a {1}-bit encryption key to obtain the maximum cipher strength", bitLength, maxValidKeyBitLength);
246+
Log.WarnFormat("Encryption key is {0} bits which is less than the maximum allowed {1} bits. Consider using a {2}-bit encryption key to obtain the maximum cipher strength", bitLength, maxValidKeyBitLength, maxValidKeyBitLength);
247247
}
248248

249249
return rijndael.ValidKeySize(bitLength);

0 commit comments

Comments
 (0)