Method Nettle.BlockCipher()->CTR.State()->set_encrypt_key()


Method set_encrypt_key

this_program set_encrypt_key(string(8bit) key, int|void flags)

Description

Prepare the cipher and the wrapper for encrypting with the given key. The key memory will be cleared before released.

Note

Note that this operation does not by itself reset the context sufficiently to start a new message; set_iv() needs to be called too.

See also

set_decrypt_key(), set_iv()