diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-26 13:20:35 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-26 13:20:35 +0700 |
commit | 4f151774bd05b3855e573accf63a0f8ecfda43ac (patch) | |
tree | 89fcf3d1e06b6282e6d470f19cdb07fe7d84064e /crypto/src/math/ec/rfc8032/Ed448.cs | |
parent | Code cleanup (diff) | |
download | BouncyCastle.NET-ed25519-4f151774bd05b3855e573accf63a0f8ecfda43ac.tar.xz |
Refactoring in Math.EC.Rfc8032
Diffstat (limited to 'crypto/src/math/ec/rfc8032/Ed448.cs')
-rw-r--r-- | crypto/src/math/ec/rfc8032/Ed448.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/math/ec/rfc8032/Ed448.cs b/crypto/src/math/ec/rfc8032/Ed448.cs index 7b774896b..d2c29a41c 100644 --- a/crypto/src/math/ec/rfc8032/Ed448.cs +++ b/crypto/src/math/ec/rfc8032/Ed448.cs @@ -1317,11 +1317,11 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032 #endif { Debug.Assert(nb.Length == ScalarUints); - Debug.Assert((int)nb[ScalarUints - 1] >= 0); + Debug.Assert(nb[ScalarUints - 1] >> 30 == 0U); Debug.Assert(np.Length == 8); - Debug.Assert((int)np[7] >> 31 == (int)np[7] >> 1); + Debug.Assert((int)np[7] >> 31 == (int)np[7]); Debug.Assert(nq.Length == 8); - Debug.Assert((int)nq[7] >> 31 == (int)nq[7] >> 1); + Debug.Assert((int)nq[7] >> 31 == (int)nq[7]); Precompute(); |