Integratec API Platform
OPAPI OPBOOL opGenerateKeyPair ( wchar_t *  path,
wchar_t *  name,
wchar_t **  errorMsg 
)

Generates a public and private encryption key pair.

Parameters
[in]pathPath to the directory for saving the key pair.
[in]nameKey pair name.
[out]errorMsgError message describing the failure, set if the function fails.
Returns
If the function succeeds, the return value is non-zero.
If the function fails, the return value is zero and errorMsg is set to an error message describing the failure.
Usage
Specify the path to the directory for saving the key pair using the path parameter and the key pair name using the name parameter.
The file name for the public key is the value of the name parameter with an extension of .public appended.
The file name for the private key is the value of the name parameter with an extension of .private appended.