Load RSA public key into the p6crypto component.
Only RSA keys are allowed for session key generation. Note, that this function can be called several times, to a maximum of numPubKeys wich was specified in the initialize() method.
- Parameters
-
pCryptoKey | [ in ] An RSA key |
pOutKeyWrapper | [ in ] Write the key wrapper and key profile into this buffer after the encryptEnvelope fucntion is called. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | One of the parameters is not as expected. |
P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eEndOfFile | This function already called numPubKeys times (see initialize). |
P6R::eNotFound | pPublicKeyFile cannot be openned. |
P6R::eNoMemory | Insufficient memory to load key. |