Using the symetric key generated by calling genSessionKey encrypt the block of data provided by the data source (pInData).
Write the resulting encrypted block to the data sink.
The single, generated symetric key is encrypted (or sealed) with each loaded RSA public key. Each of these sealed keys are stored in the P6CRYPTODATASINK associated with the public key that was passed in on the loadRSAPublicKey call.
- Parameters
-
pInData | [ in ] Generate a signature for this input data. |
pOutData | [ in ] Pointer to where to copy the signature value. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eInvalidState | loadRSAPrivateKey has not been successfully invoked. |
P6R::eInvalidArg | One of the parameters is NULL. |
P6R::eNotFound | File data source does not exist. |
P6R::eInvalidDescriptor | The requested cipher and key size is not supported. |
P6R::eIoError | Write to file data sink failed. |
P6R::eTooSmall | The buffer data sink is too small to contain the generated value. |
P6R::eNoMemory/td> | Insufficent memory for buffering. |
P6R::eInvalidState/td> | Internal error |
P6R::eFailAndException | The decryption calculation failed. Exception record provides detailed error info. |