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

◆ GetProperty()

static unsafe byte[] Internal.Cryptography.Pal.X509Pal.GetProperty ( Microsoft::Win32::SafeHandles::SafeBCryptKeyHandle cryptHandle,
string propertyName )
inlinestaticprivate

Definition at line 444 of file X509Pal.cs.

445 {
446 if (global::Interop.BCrypt.BCryptGetProperty(cryptHandle, propertyName, null, 0, out var pcbResult, 0) != 0)
447 {
448 return null;
449 }
450 byte[] array = new byte[pcbResult];
451 global::Interop.BCrypt.NTSTATUS nTSTATUS;
452 fixed (byte* pbOutput = array)
453 {
454 nTSTATUS = global::Interop.BCrypt.BCryptGetProperty(cryptHandle, propertyName, pbOutput, array.Length, out pcbResult, 0);
455 }
456 if (nTSTATUS != 0)
457 {
458 return null;
459 }
460 Array.Resize(ref array, pcbResult);
461 return array;
462 }

References System.array.

Referenced by Internal.Cryptography.Pal.X509Pal.GetPropertyAsString(), and Internal.Cryptography.Pal.X509Pal.HasExplicitParameters().