Proud::CCryptoRsaKey Class Reference

Public Member Functions

PROUD_API bool FromBlob (const ByteArray &blob)
 
bool ToBlob (ByteArray &outBlob)
 
PROUD_API bool ToBlob_privateKey (ByteArray &outBlob)
 
 operator Rsa_key * ()
 

Public Attributes

Rsa_key * m_key
 

Detailed Description

RSA Key data class.

Member Function Documentation

PROUD_API bool Proud::CCryptoRsaKey::FromBlob ( const ByteArray blob)

Import public key with CRsaKey that made with ByteArray.

Parameters
blobByteArray public key delegated from CRsaKey
bool Proud::CCryptoRsaKey::ToBlob ( ByteArray outBlob)

Delegate public key with ByteArray from CRsaKey.

Parameters
outBlobByteArray of public key that delegated from key.
PROUD_API bool Proud::CCryptoRsaKey::ToBlob_privateKey ( ByteArray outBlob)

Same to ToBlob(), but it outputs private key.

Member Data Documentation

Rsa_key* Proud::CCryptoRsaKey::m_key

RSA Key