Esempio n. 1
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
  );
Esempio n. 2
0
 public static extern bool CryptGenKey(SafeCryptProviderHandle hProv, CALG Algid, KeyGenFlags dwFlags, out SafeCryptKeyHandle phKey);
Esempio n. 3
0
 public static extern bool CryptHashPublicKeyInfo(
     SafeCryptProviderHandle hCryptProv,
     CALG Algid,
     uint dwFlags,
     CertEncoding dwCertEncodingType,
     CERT_PUBLIC_KEY_INFO pInfo,
     byte[] pbComputedHash,
     out uint pcbComputedHash
 );
Esempio n. 4
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);