summary refs log tree commit diff
path: root/crypto/src/math/ec/abc/Tnaf.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-08-02 13:39:55 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-08-02 13:39:55 +0700
commit46b0bbae12c61cbbd493fa7c9c4756e3fe825205 (patch)
treeacbc9245740e1e03b5b8eb0fe283f41508a51194 /crypto/src/math/ec/abc/Tnaf.cs
parentMisc. cleanup (diff)
downloadBouncyCastle.NET-ed25519-46b0bbae12c61cbbd493fa7c9c4756e3fe825205.tar.xz
Add BigInteger.ValueOf(int) and refactoring
Diffstat (limited to '')
-rw-r--r--crypto/src/math/ec/abc/Tnaf.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/math/ec/abc/Tnaf.cs b/crypto/src/math/ec/abc/Tnaf.cs
index 88a4eeb96..d8e9b6ae0 100644
--- a/crypto/src/math/ec/abc/Tnaf.cs
+++ b/crypto/src/math/ec/abc/Tnaf.cs
@@ -500,12 +500,12 @@ namespace Org.BouncyCastle.Math.EC.Abc
             {
                 if (mu == 1)
                 {
-                    return BigInteger.ValueOf(6);
+                    return BigInteger.Six;
                 }
                 else
                 {
                     // mu == -1
-                    return BigInteger.ValueOf(10);
+                    return BigInteger.Ten;
                 }
             }
             else