Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ECParameters.cs
Go to the documentation of this file.
1
using
System.Runtime.Versioning
;
2
3
namespace
System.Security.Cryptography
;
4
5
[UnsupportedOSPlatform(
"browser"
)]
6
public
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
{
38
throw
new
CryptographicException
(
System
.
SR
.
Cryptography_InvalidCurveKeyParameters
);
39
}
40
Curve
.
Validate
();
41
}
42
}
System.SR.Cryptography_InvalidCurveKeyParameters
static string Cryptography_InvalidCurveKeyParameters
Definition
SR.cs:68
System.SR
Definition
SR.cs:7
System.Security.Cryptography.CryptographicException
Definition
CryptographicException.cs:9
System.Runtime.Versioning
Definition
NonVersionableAttribute.cs:1
System.Security.Cryptography
Definition
CryptoPool.cs:3
System
Definition
BlockingCollection.cs:8
System.Security.Cryptography.ECCurve.Validate
void Validate()
Definition
ECCurve.cs:173
System.Security.Cryptography.ECCurve.Order
byte?[] Order
Definition
ECCurve.cs:63
System.Security.Cryptography.ECCurve.IsExplicit
bool IsExplicit
Definition
ECCurve.cs:114
System.Security.Cryptography.ECCurve.IsNamed
bool IsNamed
Definition
ECCurve.cs:125
System.Security.Cryptography.ECCurve
Definition
ECCurve.cs:9
System.Security.Cryptography.ECParameters.Q
ECPoint Q
Definition
ECParameters.cs:8
System.Security.Cryptography.ECParameters.Validate
void Validate()
Definition
ECParameters.cs:14
System.Security.Cryptography.ECParameters.Curve
ECCurve Curve
Definition
ECParameters.cs:12
System.Security.Cryptography.ECParameters.D
byte?[] D
Definition
ECParameters.cs:10
System.Security.Cryptography.ECParameters
Definition
ECParameters.cs:7
System.Security.Cryptography.ECPoint.Y
byte?[] Y
Definition
ECPoint.cs:7
System.Security.Cryptography.ECPoint.X
byte?[] X
Definition
ECPoint.cs:5
System.Security.Cryptography.ECPoint
Definition
ECPoint.cs:4
source
System.Security.Cryptography.Algorithms
System.Security.Cryptography
ECParameters.cs
Generated by
1.10.0