ICertSrvSetupKeyInformation::get_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 get_HashAlgorithm(
BSTR *pVal
);
Parameters
pVal
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for