2 files changed, 3 insertions, 2 deletions
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
diff --git a/crypto/src/crypto/prng/BasicEntropySourceProvider.cs b/crypto/src/crypto/prng/BasicEntropySourceProvider.cs
index 0e929e0fd..31a8461f0 100644
--- a/crypto/src/crypto/prng/BasicEntropySourceProvider.cs
+++ b/crypto/src/crypto/prng/BasicEntropySourceProvider.cs
@@ -58,7 +58,8 @@ namespace Org.BouncyCastle.Crypto.Prng
byte[] IEntropySource.GetEntropy()
{
- return mSecureRandom.GenerateSeed((mEntropySize + 7) / 8);
+ // TODO[FIPS] Not all SecureRandom implementations are considered valid entropy sources
+ return SecureRandom.GetNextBytes(mSecureRandom, (mEntropySize + 7) / 8);
}
int IEntropySource.EntropySize
|