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

◆ GetPropertyFromNamedCurve()

static CngProperty System.Security.Cryptography.CngKey.GetPropertyFromNamedCurve ( ECCurve curve)
inlinestaticpackage

Definition at line 481 of file CngKey.cs.

482 {
483 string friendlyName = curve.Oid.FriendlyName;
484 byte[] array = new byte[(friendlyName.Length + 1) * 2];
485 Encoding.Unicode.GetBytes(friendlyName, 0, friendlyName.Length, array, 0);
486 return new CngProperty("ECCCurveName", array, CngPropertyOptions.None);
487 }
static Encoding Unicode
Definition Encoding.cs:519

References System.array, System.Security.Cryptography.Oid.FriendlyName, System.Security.Cryptography.ECCurve.Oid, and System.Text.Encoding.Unicode.

Referenced by Internal.Cryptography.CngAlgorithmCore.GetOrGenerateKey().