NPKIGetAlgorithmInfo
Obtains the supported key sizes for the specified algorithm
(formerly NWPKIGetAlgorithmInfo).
Syntax
#include "npki.h"
NWRCODE NPKIGetAlgorithmInfo(
const NPKIContext context,
const nuint32 algorithm,
pnuint32 maxKeyEncryptKeySize,
pnuint32 maxSigningKeySize,
pnuint32 maxDataEncryptKeySize,
void *reserved1,
void *reserved2);
Parameters
- context
- (IN) Specifies the NPKI context for the request.
- algorithm
- (IN) Specifies a bit mask that represents which
algorithm information to return. The correct algorithms to use are
the key-generation algorithms (as opposed to the signing algorithms) returned
by NPKIGetServerInfo.
- maxKeyEncryptKeySize
- (OUT) Returns the maximum key size supported for
use as a key encrypting key.
- maxSigningKeySize
- (OUT) Specifies the maximum key size supported for
use as a key signing key.
- maxDataEncryptKeySize
- (OUT) Specifies the maximum key size supported for
use as a data encrypting key.
- reserved1
- Reserved for future use.
- reserved2
- Reserved for future use.
Return Values
Returns 0 if successful, or an eDirectory or PKI error code
if not successful.
Remarks
A successful call to NPKIGetServerInfo must have been made immediately before
calling this function.