Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
EncodeX509KeyUsageExtension()
unsafe byte[] Internal.Cryptography.Pal.X509Pal.EncodeX509KeyUsageExtension
(
X509KeyUsageFlags
keyUsages
)
inline
Implements
Internal.Cryptography.Pal.IX509Pal
.
Definition at line
22
of file
X509Pal.cs
.
23
{
24
ushort num = (ushort)keyUsages;
25
CRYPT_BIT_BLOB
cRYPT_BIT_BLOB =
default
(
CRYPT_BIT_BLOB
);
26
cRYPT_BIT_BLOB.cbData = 2;
27
cRYPT_BIT_BLOB.pbData = (
byte
*)(&num);
28
cRYPT_BIT_BLOB.cUnusedBits = 0;
29
CRYPT_BIT_BLOB
cRYPT_BIT_BLOB2 = cRYPT_BIT_BLOB;
30
return
global::Interop.crypt32.EncodeObject(
CryptDecodeObjectStructType
.X509_KEY_USAGE, &cRYPT_BIT_BLOB2);
31
}
Internal.Cryptography.Pal.Native.CryptDecodeObjectStructType
CryptDecodeObjectStructType
Definition
CryptDecodeObjectStructType.cs:4
Internal.Cryptography.Pal.Native.CRYPT_BIT_BLOB
Definition
CRYPT_BIT_BLOB.cs:7
Internal
Cryptography
Pal
X509Pal
Generated by
1.10.0