From d14a74e10b032251a33049535cc2b70e94ce48f1 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 20 Nov 2015 10:56:42 +0700 Subject: Don't reveal the output size in exception message --- crypto/src/crypto/digests/SkeinEngine.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/src/crypto/digests/SkeinEngine.cs b/crypto/src/crypto/digests/SkeinEngine.cs index 7e93138ac..cfedfadf3 100644 --- a/crypto/src/crypto/digests/SkeinEngine.cs +++ b/crypto/src/crypto/digests/SkeinEngine.cs @@ -741,7 +741,7 @@ namespace Org.BouncyCastle.Crypto.Digests CheckInitialised(); if (outBytes.Length < (outOff + outputSizeBytes)) { - throw new DataLengthException("Output buffer is too short to hold output of " + outputSizeBytes + " bytes"); + throw new DataLengthException("Output buffer is too short to hold output"); } // Finalise message block -- cgit 1.5.1