summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crypto/src/crypto/generators/SCrypt.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/generators/SCrypt.cs b/crypto/src/crypto/generators/SCrypt.cs
index 51dc50b81..9c204e786 100644
--- a/crypto/src/crypto/generators/SCrypt.cs
+++ b/crypto/src/crypto/generators/SCrypt.cs
@@ -118,7 +118,7 @@ namespace Org.BouncyCastle.Crypto.Generators
 				uint mask = (uint)N - 1;
 				for (int i = 0; i < N; ++i)
 				{
-					uint j = X[BCount - 16] & mask;
+					int j = (int)(X[BCount - 16] & mask);
                     Array.Copy(V, j * BCount, blockY, 0, BCount);
                     Xor(blockY, X, 0, blockY);
                     BlockMix(blockY, blockX1, blockX2, X, r);