Mentalis.org Security Library documentation

RC4.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

This property always returns a byte array of length one. The value of the byte in the array is always set to zero.

Remarks

RC4 doesn't use the IV property, however the property accepts IV's of up to one byte (RC4's BlockSize) in order to interoperate with software that has been written with the use of block ciphers in mind.

Exceptions

Exception TypeCondition
CryptographicExceptionAn attempt is made to set the IV to an invalid instance.

See Also

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