ICspAlgorithm::get_MinLength method (certenroll.h)
The MinLength property retrieves the minimum permitted length for a key. This property is web enabled.
This property is read-only.
Syntax
HRESULT get_MinLength(
LONG *pValue
);
Parameters
pValue
Return value
None
Remarks
The DefaultLength, IncrementLength, MaxLength, and MinLength properties can vary by algorithm and provider. The following table lists a few example maximum, minimum and default key sizes.
Algorithm OID | Cryptographic provider | Key length (bits) |
---|---|---|
XCN_OID_OIWSEC_desCBC(1.3.14.3.2.7) |
Microsoft Base DSS and Diffie-Hellman Cryptographic Provider
Microsoft Enhanced Cryptographic Provider v1.0 Microsoft DH Schannel Cryptographic Provider Microsoft Enhanced RSA and AES Cryptographic Provider |
Minimum: 56
Maximum: 56 Default: 56 |
XCN_OID_RSA_DES_EDE3_CBC(1.2.840.113549.3.7) |
Microsoft Base DSS and Diffie-Hellman Cryptographic Provider
Microsoft Enhanced Cryptographic Provider v1.0 Microsoft DH Schannel Cryptographic Provider Microsoft Enhanced RSA and AES Cryptographic Provider Microsoft Exchange Cryptographic Provider v1.0 |
Minimum: 168
Maximum: 168 Default: 168 |
XCN_OID_RSA_RSA(1.2.840.113549.1.1.1) |
Microsoft Enhanced Cryptographic Provider v1.0
Microsoft Enhanced RSA and AES Cryptographic Provider Microsoft RSA Schannel Cryptographic Provider Microsoft Strong Cryptographic Provider |
Minimum: 384
Maximum: 16,384 Default: 1,024 Increment: 8 |
XCN_OID_X957_DSA(1.2.840.10040.4.1) |
Microsoft Base DSS and Diffie-Hellman Cryptographic Provider
Microsoft Base DSS Cryptographic Provider Microsoft DH Schannel Cryptographic Provider Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider |
Minimum: 512
Maximum: 1,024 Default: 1,024 Increment: 64 |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | certenroll.h |
DLL | CertEnroll.dll |