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

◆ ExportKeyBlob() [2/2]

static byte[] System.Security.Cryptography.ECCng.ExportKeyBlob ( CngKey key,
bool includePrivateParameters,
out CngKeyBlobFormat format,
out string curveName )
inlinestaticpackage

Definition at line 37 of file ECCng.cs.

38 {
39 curveName = key.GetCurveName(out var _);
40 bool flag = false;
41 if (string.IsNullOrEmpty(curveName))
42 {
43 curveName = null;
44 flag = true;
45 format = (includePrivateParameters ? CngKeyBlobFormat.EccFullPrivateBlob : CngKeyBlobFormat.EccFullPublicBlob);
46 }
47 else
48 {
49 format = (includePrivateParameters ? CngKeyBlobFormat.EccPrivateBlob : CngKeyBlobFormat.EccPublicBlob);
50 }
51 byte[] array = key.Export(format);
52 if (flag)
53 {
55 }
56 return array;
57 }
static unsafe void FixupGenericBlob(byte[] blob)
Definition ECCng.cs:59

References System.array, System.Security.Cryptography.CngKeyBlobFormat.EccFullPublicBlob, System.Security.Cryptography.CngKeyBlobFormat.EccPublicBlob, System.Security.Cryptography.ECCng.FixupGenericBlob(), System.format, and System.key.