ICertSrvSetupKeyInformation::put_HashAlgorithm method (casetup.h)

The HashAlgorithm property gets or sets the name of the hashing algorithm used to sign or verify the certification authority (CA) certificate for the key.

This property is read/write.

Syntax

HRESULT put_HashAlgorithm(
  const BSTR bstrVal
);

Parameters

bstrVal

Return value

None

Remarks

The hashing algorithm must be supported by the ProviderName provider. For cryptographic service providers (CSPs), get supported algorithms by calling the CryptGetProvParam function for the given provider. For key storage providers (KSPs), get supported algorithms by calling the BCryptEnumAlgorithms function with the dwAlgOperations parameter set to BCRYPT_HASH_OPERATION. For information about algorithm identifiers, see CNG Algorithm Identifiers.

Examples

For an example of enumerating supported algorithms by using CryptGetProvParam, see Example C Program: Enumerating CSP Providers and Provider Types.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Datacenter, Windows Server 2008 Enterprise [desktop apps only]
Target Platform Windows
Header casetup.h
DLL Certocm.dll

See also

ICertSrvSetupKeyInformation