Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
DecodeX509KeyUsageExtension()
unsafe void Internal.Cryptography.Pal.X509Pal.DecodeX509KeyUsageExtension
(
byte[]
encoded
,
out
X509KeyUsageFlags
keyUsages
)
inline
Implements
Internal.Cryptography.Pal.IX509Pal
.
Definition at line
33
of file
X509Pal.cs
.
34
{
35
uint num = encoded.DecodeObject(
CryptDecodeObjectStructType
.X509_KEY_USAGE, delegate(
void
* pvDecoded,
int
cbDecoded)
36
{
37
byte
* pbData = ((
CRYPT_BIT_BLOB
*)pvDecoded)->pbData;
38
if
(pbData !=
null
)
39
{
40
switch
(((
CRYPT_BIT_BLOB
*)pvDecoded)->cbData)
41
{
42
case
1:
43
return
*pbData;
44
case
2:
45
return
*(ushort*)pbData;
46
}
47
}
48
return
0u;
49
});
50
keyUsages = (
X509KeyUsageFlags
)num;
51
}
Internal.Cryptography.Pal.Native.CryptDecodeObjectStructType
CryptDecodeObjectStructType
Definition
CryptDecodeObjectStructType.cs:4
System.Security.Cryptography.X509Certificates.X509KeyUsageFlags
X509KeyUsageFlags
Definition
X509KeyUsageFlags.cs:5
Internal.Cryptography.Pal.Native.CRYPT_BIT_BLOB
Definition
CRYPT_BIT_BLOB.cs:7
Internal
Cryptography
Pal
X509Pal
Generated by
1.10.0