Skip to content

Commit a1d500d

Browse files
committed
The functions are currently unused, but Stef pointed out that the xeddsa and vxeddsa verify strictness check had a return value incompatible with the verify function's return value, causing a strictness check failure to be interpreted as a signature verification success.
This change also removes some other old/vestigial code.
1 parent a080174 commit a1d500d

10 files changed

+100
-533
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using org.whispersystems.curve25519.csharp;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace curve25519_dotnet.csharp
9+
{
10+
public class Fe_isreduced
11+
{
12+
public static bool fe_isreduced(byte[] curve25519_pubkey)
13+
{
14+
int[] fe = new int[10];
15+
byte[] strict = new byte[32];
16+
17+
Fe_frombytes.fe_frombytes(fe, curve25519_pubkey);
18+
if (Crypto_verify_32.crypto_verify_32(strict, curve25519_pubkey) != 0)
19+
return false;
20+
return true;
21+
}
22+
}
23+
}

curve25519-dotnet/csharp/ge_is_small_order.cs

-47
This file was deleted.

curve25519-dotnet/csharp/ge_montx_to_p2.cs

-92
This file was deleted.

curve25519-dotnet/csharp/uopen_modified.cs

-142
This file was deleted.

curve25519-dotnet/csharp/usign_modified.cs

-86
This file was deleted.

0 commit comments

Comments
 (0)