Method Nettle.BlockCipher16()->GCM.State()->set_iv()


Method set_iv

this_program set_iv(string(8bit) iv)

Description

Set the initialization vector to iv. The iv memory will be cleared before released.

Also resets all state needed to start a new message.

Note

For ivs of length other than 12, an encryption or decryption key must have been set first.

See also

set_encrypt_key(), set_decrypt_key().