Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SpecialNistAlgorithmToCurveName()

static string System.Security.Cryptography.ECCng.SpecialNistAlgorithmToCurveName ( string algorithm,
out string oidValue )
inlinestaticpackage

Definition at line 42 of file ECCng.cs.

43 {
44 switch (algorithm)
45 {
46 case "ECDH_P256":
47 case "ECDSA_P256":
48 oidValue = "1.2.840.10045.3.1.7";
49 return "nistP256";
50 case "ECDH_P384":
51 case "ECDSA_P384":
52 oidValue = "1.3.132.0.34";
53 return "nistP384";
54 case "ECDH_P521":
55 case "ECDSA_P521":
56 oidValue = "1.3.132.0.35";
57 return "nistP521";
58 default:
59 throw new PlatformNotSupportedException(System.SR.Format(System.SR.Cryptography_CurveNotSupported, algorithm));
60 }
61 }
static string Cryptography_CurveNotSupported
Definition SR.cs:64
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.SR.Cryptography_CurveNotSupported, and System.SR.Format().

Referenced by System.Security.Cryptography.ECCngKey.GetCurveName().