Proud::CCryptoRsa Class Reference

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)
 

Detailed Description

Encryption class of RSA publick key, private key

Member Function Documentation

static PROUD_API bool Proud::CCryptoRsa::CreatePublicAndPrivateKey ( CCryptoRsaKey outXchgKey,
ByteArray outPubKeyBlob 
)
static

TODO:translate needed. Creates RSA publick key and private key.

Parameters
outXchgKeyRSA key that will be created
outPubKeyBlobByteArray value of public key that export from RSA key.
Returns
static PROUD_API bool Proud::CCryptoRsa::CreateRandomBlock ( ByteArray output,
int  length 
)
static

TODO:translate needed. Creates Random Block.

Parameters
outputByteArray of random block that be created
lengthLength of random block that will create
Returns
static PROUD_API ErrorInfoPtr Proud::CCryptoRsa::DecryptSessionKeyByPrivateKey ( ByteArray outRandomBlock,
const ByteArray encryptedSessionKey,
const CCryptoRsaKey privateKey 
)
static

TODO:translate needed. Decrypt encrypted block with private key

Parameters
outRandomBlockByteArray that will decrypt
encryptedSessionKeyEncrypted ByteArray
privateKeyPrivate key
Returns
static PROUD_API bool Proud::CCryptoRsa::EncryptSessionKeyByPublicKey ( ByteArray outEncryptedSessionKey,
const ByteArray randomBlock,
const ByteArray publicKeyBlob 
)
static

TODO:translate needed. Encrypt block with public key

Parameters
outEncryptedSessionKeyRandom block that will be encrypted.
randonBlockRandom block that will encrypt
publicKeyBlobRSA public key
Returns