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

◆ FromFriendlyName()

static Oid System.Security.Cryptography.Oid.FromFriendlyName ( string friendlyName,
OidGroup group )
inlinestatic

Definition at line 106 of file Oid.cs.

107 {
108 if (friendlyName == null)
109 {
110 throw new ArgumentNullException("friendlyName");
111 }
112 string text = OidLookup.ToOid(friendlyName, group, fallBackToAllGroups: false);
113 if (text == null)
114 {
115 throw new CryptographicException(System.SR.Cryptography_Oid_InvalidName);
116 }
117 return new Oid(text, friendlyName, group);
118 }
static string ToOid(string friendlyName, OidGroup oidGroup, bool fallBackToAllGroups)
Definition OidLookup.cs:39
static string Cryptography_Oid_InvalidName
Definition SR.cs:16
Definition SR.cs:7

References System.Security.Cryptography.Oid.Oid(), System.SR.Cryptography_Oid_InvalidName, System.text, and Internal.Cryptography.OidLookup.ToOid().

Referenced by System.Security.Cryptography.ECCurve.CreateFromValueAndName(), System.Security.Cryptography.CryptoConfig.MapNameToOID(), and System.Security.Cryptography.EccKeyFormatHelper.WriteEcParameters().