Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ECParameters.cs
Go to the documentation of this file.
2
4
5[UnsupportedOSPlatform("browser")]
6public struct ECParameters
7{
8 public ECPoint Q;
9
10 public byte[]? D;
11
12 public ECCurve Curve;
13
14 public void Validate()
15 {
16 bool flag = true;
17 if (D != null && Q.Y == null && Q.X == null)
18 {
19 flag = false;
20 }
21 if (Q.Y != null && Q.X != null && Q.Y.Length == Q.X.Length)
22 {
23 flag = false;
24 }
25 if (!flag)
26 {
27 if (Curve.IsExplicit)
28 {
29 flag = D != null && D.Length != Curve.Order.Length;
30 }
31 else if (Curve.IsNamed && Q.X != null)
32 {
33 flag = D != null && D.Length != Q.X.Length;
34 }
35 }
36 if (flag)
37 {
39 }
41 }
42}
static string Cryptography_InvalidCurveKeyParameters
Definition SR.cs:68
Definition SR.cs:7