RSASealEnvelope()
The function RSASealEnvelope() encrypts data.
Synopsis
int RSASealEnvelope(string keyAddress, blob inputData, blob&
encryptedData)
Parameters
| Parameter | Description |
|---|---|
| keyAddress | The publicPEM ( public key ) generated by using the functionRSAGenerateKeyPair() |
| inputData | The data to be encrypted. |
| encryptedData | The encrypted data. |
Return value
In case of an error, the function returns -1 and otherwise 0.
Description
The function RSASealEnvelope() encrypts data.
Assignment
RSA Functions
Availability
UI