7 internal static class Crypt32
9 internal struct CRYPT_OID_INFO
40 [DllImport(
"crypt32.dll", BestFitMapping =
false, SetLastError =
true)]
41 internal unsafe
static extern bool CryptFormatObject([In]
int dwCertEncodingType, [In]
int dwFormatType, [In]
int dwFormatStrType, [In]
IntPtr pFormatStruct, [In]
byte* lpszStructType, [In]
byte[] pbEncoded, [In]
int cbEncoded, [Out]
void* pbFormat, [In][Out] ref
int pcbFormat);
48 intPtr = keyType
switch
68 if (fallBackToAllGroups && group != 0)
93 return group ==
OidGroup.KeyDerivationFunction;
static CRYPT_OID_INFO FindOidInfo(CryptOidInfoKeyType keyType, string key, OidGroup group, bool fallBackToAllGroups)
@ CRYPT_OID_INFO_NAME_KEY
@ CRYPT_OID_INFO_CNG_SIGN_KEY
@ CRYPT_OID_INFO_SIGN_KEY
@ CRYPT_OID_INFO_CNG_ALGID_KEY
@ CRYPT_OID_INFO_ALGID_KEY
static unsafe bool CryptFormatObject([In] int dwCertEncodingType, [In] int dwFormatType, [In] int dwFormatStrType, [In] IntPtr pFormatStruct, [In] byte *lpszStructType, [In] byte[] pbEncoded, [In] int cbEncoded, [Out] void *pbFormat, [In][Out] ref int pcbFormat)
static IntPtr CryptFindOIDInfo(CryptOidInfoKeyType dwKeyType, IntPtr pvKey, OidGroup group)
static bool OidGroupWillNotUseActiveDirectory(OidGroup group)
static unsafe IntPtr StringToCoTaskMemUni(string? s)
static void FreeCoTaskMem(IntPtr ptr)
static unsafe? string PtrToStringUni(IntPtr ptr)
static unsafe? string PtrToStringAnsi(IntPtr ptr)
static ? object PtrToStructure(IntPtr ptr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type structureType)
static unsafe IntPtr StringToCoTaskMemAnsi(string? s)
static readonly IntPtr Zero