SymmetricAlgorithm: IV (let)

IV

Sets the initialization vector (IV) for the symmetric algorithm.



 Public Property Let IV(
	  ByRef Value ( ) As Byte ) :

Parameters

Value
[ByRef] Byte. The initialization vector.

Remarks

If several blocks of same plain text are encrypted, the ciphered data could all be the same aswell. Using an Initialization Vector can prevent same plain text blocks to reproduce the same ciphered blocks.

This can be generated using the GenerateIV method, or a new one will be generated if one hasnt been set when this property is accessed.

This must be set to an array the same size as the block size divided by 8.

Read/Write.

Exceptions

ExceptionCondition
ArgumentNullExceptionAn attempt was made to set the initialization vector to an unitialized array.
CryptographicExceptionAn attempt was made to set the initialization vector to an invalid size.

See Also

Project CorLib Overview

Class SymmetricAlgorithm Overview