Xceed Encryption Library Documentation
InitVector property
Xceed Encryption control reference > Encryption Method objects > XceedRijndaelEncryptionMethod object > InitVector property

Description

The InitVector property allows you to set the initialization vector required by secret-key encryption algorithms when the EncryptionMode property is set to emoChainedBlocks.

You can initialize this property with a random value by calling the SetRandomInitVector method, or you can initialize it from a PassPhrase by calling the SetInitVectorFromPassPhrase method.

It is recommended that you set this property to a different value for each message you encrypt.

Data type

Byte array variant

Default value

Null

Applicable methods

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

Declaration (IXceedEncryption) Copy Code

HRESULT GetInitVector( [size_is][size_is][out] BYTE** ppcVector, [out] short* pnVectorSize )

HRESULT SetInitVector( [size_is][in] const BYTE* pcVector, [in] short nVectorSize )