From 14dcf17b94f399d0e1ef02d6045165f6795d4b0a Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 20 Feb 2020 01:09:35 +0700 Subject: Mark methods as "Var" for clarity --- crypto/src/math/ec/rfc8032/Ed25519.cs | 6 +++--- crypto/src/math/ec/rfc8032/Ed448.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'crypto/src') 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)); -- cgit 1.5.1