Xceed Encryption Library Documentation
Xceed Encryption control reference / Encryption Method objects / XceedRSAEncryptionMethod object / PrivateKey property
In This Topic
    PrivateKey property
    In This Topic

    Description

    The PrivateKey property lets you set the Private Key to be used when decrypting data using a public-key encryption algorithm or when digitally signing data.

    Data type

    Byte array variant

    Default value

    Null

    Remarks

    The length of the Private Key must be greater or equal to 16 bits and less than or equal to 7128 bits.

    Applicable methods

    Sign, Encrypt, Decrypt, ReadFile, WriteFile, ProcessFile, ToString and FromString

    Declaration (IXceedEncryption) Copy Code

    HRESULT GetPrivateKey( [size_is][size_is][out] BYTE** ppcKey, [out] short* pnKeySize )
    HRESULT SetPrivateKey( [size_is][in] BYTE* pcKey, [in] short nKeySize )