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

    Description

    The PublicKey property lets you set the Public Key to be used when encrypting data using a public-key encryption algorithm or when verifying data against a digital signature .

    Data type

    Byte array variant

    Default value

    Null

    Remarks

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

    Applicable methods

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

    Declaration (IXceedEncryption) Copy Code

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