Static Public Member Functions | |
static PROUD_API bool | CreateRandomBlock (ByteArray &output, int length) |
static PROUD_API bool | CreatePublicAndPrivateKey (CCryptoRsaKey &outXchgKey, ByteArray &outPubKeyBlob) |
static PROUD_API bool | EncryptSessionKeyByPublicKey (ByteArray &outEncryptedSessionKey, const ByteArray &randomBlock, const ByteArray &publicKeyBlob) |
static PROUD_API ErrorInfoPtr | DecryptSessionKeyByPrivateKey (ByteArray &outRandomBlock, const ByteArray &encryptedSessionKey, const CCryptoRsaKey &privateKey) |
Encryption class of RSA publick key, private key
|
static |
TODO:translate needed. Generate a public key and a private key.
outXchgKey | This is an RSA key to be generated |
outPubKeyBlob | This is the value of ByteArray of a public key exported from the RSA key to be generated. |
|
static |
TODO:translate needed. Generate a random block.
output | This is the ByteArray of the random block to be generated. |
length | This is the length of the random block to be generated. |
|
static |
|
static |
TODO:translate needed. Encode the block with the public key
outEncryptedSessionKey | This is the random block to be encrypted. |
randomBlock | This is the random block you will encrypt. |
publicKeyBlob | This is the RSA public key. |