Gets or sets the initialization vector (IV) for the symmetric algorithm.

Namespace: LLCryptoLib.Security.Cryptography
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public override byte[] IV { get; set; }
Visual Basic
Public Overrides Property IV As Byte()
	Get
	Set
Visual C++
public:
virtual property array<unsigned char>^ IV {
	array<unsigned char>^ get () override;
	void set (array<unsigned char>^ value) override;
}

Field Value

The initialization vector.

Remarks

If this property is a null reference (Nothing in Visual Basic) when it is used, GenerateIV()()()() is called to create a new random value.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionAn attempt is made to set the IV to a null reference (Nothing in Visual Basic).
System.Security.Cryptography..::..CryptographicExceptionAn attempt is made to set the IV to an invalid size.

See Also