Mentalis.org Security Library documentation

RijndaelCryptoServiceProvider.IV Property

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

[Visual Basic]
Overrides Public Property IV As Byte()
[C#]
public override byte[] IV {get; set;}

Property 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

Exception TypeCondition
ArgumentNullExceptionAn attempt is made to set the IV to a null reference (Nothing in Visual Basic).
CryptographicExceptionAn attempt is made to set the IV to an invalid size.

See Also

RijndaelCryptoServiceProvider Class | RijndaelCryptoServiceProvider Members | Org.Mentalis.Security.Cryptography Namespace