예제 #1
0
 public static extern bool CryptHashPublicKeyInfo(
     SafeCryptProviderHandle hCryptProv,
     CALG Algid,
     uint dwFlags,
     CertEncoding dwCertEncodingType,
     CERT_PUBLIC_KEY_INFO pInfo,
     byte[] pbComputedHash,
     out uint pcbComputedHash
     );
예제 #2
0
 public static extern IntPtr CertCreateSelfSignCertificate(
     SafeCryptProviderHandle hCryptProvOrNCryptKey,
     [Out] CRYPTOAPI_BLOB pSubjectIssuerBlob,
     CertCreationFlags dwFlags,
     CRYPT_KEY_PROV_INFO pKeyProvInfo,
     CRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm,
     SYSTEMTIME pStartTime,
     SYSTEMTIME pEndTime,
     CERT_EXTENSIONS pExtension
     );
예제 #3
0
 public static extern bool CryptSignAndEncodeCertificate(
     SafeCryptProviderHandle hCryptProv,
     CALG dwKeySpec,
     CertEncoding dwCertEncodingType,
     IntPtr lpszStructType,
     IntPtr pvStructInfo,
     CRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm,
     IntPtr pvHashAuxInfo,
     byte[] pbEncoded,
     ref uint pcbEncoded
     );
예제 #4
0
 public static extern bool CryptSignAndEncodeCertificate(
        SafeCryptProviderHandle hCryptProv,
        CALG dwKeySpec,
        CertEncoding dwCertEncodingType,
        IntPtr lpszStructType,
        IntPtr pvStructInfo,
        CRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm,
        IntPtr pvHashAuxInfo,
        byte[] pbEncoded,
        ref uint pcbEncoded
  );
예제 #5
0
 public static extern bool CryptImportKey(SafeCryptProviderHandle hProv, byte[] pbData, uint dwDataLen, 
     SafeCryptKeyHandle hPubKey, uint dwFlags, out SafeCryptKeyHandle hKey);
예제 #6
0
 public static extern bool CryptHashPublicKeyInfo(
     SafeCryptProviderHandle hCryptProv,
     CALG Algid,
     uint dwFlags,
     CertEncoding dwCertEncodingType,
     CERT_PUBLIC_KEY_INFO pInfo,
     byte[] pbComputedHash,
     out uint pcbComputedHash
 );
예제 #7
0
 public static extern bool CryptGenKey(SafeCryptProviderHandle hProv, CALG Algid, KeyGenFlags dwFlags, out SafeCryptKeyHandle phKey);
예제 #8
0
 public static extern bool CryptExportPublicKeyInfoEx(SafeCryptProviderHandle hCryptProv, CALG dwKeySpec, CertEncoding dwCertEncodingType,
     [MarshalAs(UnmanagedType.LPStr)] string pszPublicKeyObjId, uint dwFlags, IntPtr pvAuxInfo, IntPtr pInfo, ref uint pcbInfo);
예제 #9
0
 public static extern bool CryptAcquireContext(out SafeCryptProviderHandle hProv, string pszContainer, string pszProvider, Providers dwProvType, CryptFlags dwFlags);
예제 #10
0
 public static extern IntPtr CertCreateSelfSignCertificate(
     SafeCryptProviderHandle hCryptProvOrNCryptKey,
     [Out] CRYPTOAPI_BLOB pSubjectIssuerBlob,
     CertCreationFlags dwFlags,
     CRYPT_KEY_PROV_INFO pKeyProvInfo,
     CRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm,
     SYSTEMTIME pStartTime,
     SYSTEMTIME pEndTime,
     CERT_EXTENSIONS pExtension
     );
예제 #11
0
 public static extern bool CryptImportKey(SafeCryptProviderHandle hProv, byte[] pbData, uint dwDataLen,
                                          SafeCryptKeyHandle hPubKey, uint dwFlags, out SafeCryptKeyHandle hKey);
예제 #12
0
 public static extern bool CryptExportPublicKeyInfoEx(SafeCryptProviderHandle hCryptProv, CALG dwKeySpec, CertEncoding dwCertEncodingType,
                                                      [MarshalAs(UnmanagedType.LPStr)] string pszPublicKeyObjId, uint dwFlags, IntPtr pvAuxInfo, IntPtr pInfo, ref uint pcbInfo);
예제 #13
0
 public static extern bool CryptGenKey(SafeCryptProviderHandle hProv, CALG Algid, KeyGenFlags dwFlags, out SafeCryptKeyHandle phKey);
예제 #14
0
 public static extern bool CryptAcquireContext(out SafeCryptProviderHandle hProv, string pszContainer, string pszProvider, Providers dwProvType, CryptFlags dwFlags);