ICertSrvSetup::GetKeyLengthList method (casetup.h)

The GetKeyLengthList method gets the list of key lengths supported by the specified cryptographic service provider (CSP). This method does not change the state of the CCertSrvSetup object.

Syntax

HRESULT GetKeyLengthList(
  [in]  const BSTR bstrProviderName,
  [out] VARIANT    *pVal
);

Parameters

[in] bstrProviderName

A string that contains the name of the provider. For key storage providers, this must be in the form PublicKeyAlgorithmName#KeyStorageProviderName for example "RSA#Microsoft Software Key Storage provider".

[out] pVal

A pointer to a VARIANT array of VT_UI4 types that correspond to the key lengths supported by the CSP.

Return value

None

Requirements

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

See also

ICertSrvSetup