iv Property
The initialization vector (IV).
Syntax
def get_iv() -> bytes: ... def set_iv(value: bytes) -> None: ...
iv = property(get_iv, set_iv)
Default Value
""
Remarks
This property specifies the initialization vector (IV). This is also referred to as the nonce. By default this property is empty and the class will automatically generate a new iv value if key_password or key is set before encrypt or encrypt_block is called.
XSalsa Notes:
When Algorithm is set to XSalsa the length of the IV must be 192 bits in length (24 bytes).
Salsa Notes:
When Algorithm is set to Salsa the length of the IV must be 64 bits in length (8 bytes).