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

◆ GetExpectedOidValue< T >()

static string Internal.Cryptography.Pal.CertificateExtensionsCommon.GetExpectedOidValue< T > ( )
inlinestaticprivate
Type Constraints
T :AsymmetricAlgorithm 

Definition at line 77 of file CertificateExtensionsCommon.cs.

78 {
79 if (typeof(T) == typeof(RSA))
80 {
81 return "1.2.840.113549.1.1.1";
82 }
83 if (typeof(T) == typeof(ECDsa) || typeof(T) == typeof(ECDiffieHellman))
84 {
85 return "1.2.840.10045.2.1";
86 }
87 if (typeof(T) == typeof(DSA))
88 {
89 return "1.2.840.10040.4.1";
90 }
92 }
static string NotSupported_KeyAlgorithm
Definition SR.cs:114
Definition SR.cs:7

References System.SR.NotSupported_KeyAlgorithm.

Referenced by Internal.Cryptography.Pal.CertificateExtensionsCommon.GetPrivateKey< T >(), and Internal.Cryptography.Pal.CertificateExtensionsCommon.GetPublicKey< T >().