diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-02-20 01:09:35 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-02-20 01:09:35 +0700 |
commit | 14dcf17b94f399d0e1ef02d6045165f6795d4b0a (patch) | |
tree | 9a5287538fd938c46caae87ebb63fcb5621a8670 /crypto/src/math | |
parent | Stricter header validation for PEM files (diff) | |
download | BouncyCastle.NET-ed25519-14dcf17b94f399d0e1ef02d6045165f6795d4b0a.tar.xz |
Mark methods as "Var" for clarity
Diffstat (limited to 'crypto/src/math')
-rw-r--r-- | crypto/src/math/ec/rfc8032/Ed25519.cs | 6 | ||||
-rw-r--r-- | crypto/src/math/ec/rfc8032/Ed448.cs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/crypto/src/math/ec/rfc8032/Ed25519.cs b/crypto/src/math/ec/rfc8032/Ed25519.cs index 238256cf7..95ba43472 100644 --- a/crypto/src/math/ec/rfc8032/Ed25519.cs +++ b/crypto/src/math/ec/rfc8032/Ed25519.cs @@ -314,7 +314,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032 ScalarMultBaseEncoded(s, pk, pkOff); } - private static sbyte[] GetWnaf(uint[] n, int width) + private static sbyte[] GetWnafVar(uint[] n, int width) { Debug.Assert(n[ScalarUints - 1] >> 28 == 0); @@ -1000,8 +1000,8 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032 int width = 5; - sbyte[] ws_b = GetWnaf(nb, WnafWidthBase); - sbyte[] ws_p = GetWnaf(np, width); + sbyte[] ws_b = GetWnafVar(nb, WnafWidthBase); + sbyte[] ws_p = GetWnafVar(np, width); PointExt[] tp = PointPrecompVar(p, 1 << (width - 2)); diff --git a/crypto/src/math/ec/rfc8032/Ed448.cs b/crypto/src/math/ec/rfc8032/Ed448.cs index 925f48eb1..12f24c1ff 100644 --- a/crypto/src/math/ec/rfc8032/Ed448.cs +++ b/crypto/src/math/ec/rfc8032/Ed448.cs @@ -323,7 +323,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032 ScalarMultBaseEncoded(s, pk, pkOff); } - private static sbyte[] GetWnaf(uint[] n, int width) + private static sbyte[] GetWnafVar(uint[] n, int width) { Debug.Assert(n[ScalarUints - 1] >> 30 == 0U); @@ -1087,8 +1087,8 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032 int width = 5; - sbyte[] ws_b = GetWnaf(nb, WnafWidthBase); - sbyte[] ws_p = GetWnaf(np, width); + sbyte[] ws_b = GetWnafVar(nb, WnafWidthBase); + sbyte[] ws_p = GetWnafVar(np, width); PointExt[] tp = PointPrecompVar(p, 1 << (width - 2)); |