CryptHashPublicKeyInfo

[DllImport("Crypt32.dll", SetLastError = true)]
public static extern bool CryptHashPublicKeyInfo(
   IntPtr hCryptProv,
   uint Algid,
   uint dwFlags,
   uint dwCertEncodingType,
   ref CRYPTOAPI_BLOB pInfo,
   byte[] pbComputedHash,
   ref uint pcbComputedHash
);

Microsoft documentation: Link

Last updated