summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-08-01 17:20:50 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-08-01 17:20:50 +0700
commitebc59878af4e191c04c1073ea37053529e46c2f1 (patch)
tree0b31c683a9858d6a3ec57bc48c9d43aee044455a
parentEC updates from bc-java (diff)
downloadBouncyCastle.NET-ed25519-ebc59878af4e191c04c1073ea37053529e46c2f1.tar.xz
Cast to remove warning
-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);