예제 #1
0
 internal static extern bool CryptHashPublicKeyInfo(
     [In] SafeCryptProvHandle hCryptProv,
     [In] uint Algid,
     [In] uint dwFlags,
     [In] uint dwCertEncodingType,
     [In] IntPtr pInfo,
     [Out] byte[] pbComputedHash,
     [In, Out] ref int pcbComputedHash);
예제 #2
0
 internal static extern bool CryptExportPublicKeyInfoEx(
     [In] SafeCryptProvHandle hCryptProv,
     [In] uint dwKeySpec,
     [In] uint dwCertEncodingType,
     [In, MarshalAs(UnmanagedType.LPStr)] string pszPublicKeyObjId,
     [In] uint dwFlags,
     [In] IntPtr pvAuxInfo,
     [Out] IntPtr pInfo,
     [In, Out] ref int pcbInfo);
예제 #3
0
 internal static extern SafeCertContextHandle CertCreateSelfSignCertificate(
     SafeCryptProvHandle providerHandle,
     [In] ref CRYPTOAPI_BLOB subjectIssuerBlob,
     uint flags,
     [In] ref CRYPT_KEY_PROV_INFO keyProviderInformation,
     [In] ref CRYPT_ALGORITHM_IDENTIFIER signatureAlgorithm,
     [In] ref SYSTEMTIME startTime,
     [In] ref SYSTEMTIME endTime,
     [In] ref CERT_EXTENSIONS extensions);
예제 #4
0
 internal static extern SafeCertContextHandle CertCreateSelfSignCertificate(
     SafeCryptProvHandle providerHandle,
     [In] ref CRYPTOAPI_BLOB subjectIssuerBlob,
     uint flags,
     [In] ref CRYPT_KEY_PROV_INFO keyProviderInformation,
     [In] ref CRYPT_ALGORITHM_IDENTIFIER signatureAlgorithm,
     [In] ref SYSTEMTIME startTime,
     [In] ref SYSTEMTIME endTime,
     [In] ref CERT_EXTENSIONS extensions);
예제 #5
0
 internal static extern bool CryptGenKey(
     SafeCryptProvHandle providerContext,
     uint algorithmId,
     uint flags,
     out SafeCryptKeyHandle cryptKeyHandle);
예제 #6
0
 internal static extern bool CryptAcquireContextW(
     out SafeCryptProvHandle providerContext,
     [MarshalAs(UnmanagedType.LPWStr)] string container,
     [MarshalAs(UnmanagedType.LPWStr)] string provider,
     uint providerType,
     uint flags);
예제 #7
0
 internal static extern bool CryptGenKey(
     SafeCryptProvHandle providerContext,
     uint algorithmId,
     uint flags,
     out SafeCryptKeyHandle cryptKeyHandle);
예제 #8
0
 internal static extern bool CryptAcquireContextW(
     out SafeCryptProvHandle providerContext,
     [MarshalAs(UnmanagedType.LPWStr)] string container,
     [MarshalAs(UnmanagedType.LPWStr)] string provider,
     uint providerType,
     uint flags);