diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-01 17:20:50 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-01 17:20:50 +0700 |
commit | ebc59878af4e191c04c1073ea37053529e46c2f1 (patch) | |
tree | 0b31c683a9858d6a3ec57bc48c9d43aee044455a /crypto | |
parent | EC updates from bc-java (diff) | |
download | BouncyCastle.NET-ed25519-ebc59878af4e191c04c1073ea37053529e46c2f1.tar.xz |
Cast to remove warning
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/crypto/generators/SCrypt.cs | 2 |
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); |