Home  Contents

cipher.aes

Cipher Core4 Lua Commands

SYNOPSIS

aes = cipher.aes()

DESCRIPTION

This function creates a new AES encryption or decryption state handle that can be used to run AES ciphers.

RETURN VALUE

A aes state handle.

NOTES

After obtaining a state handle, it must be initialized with an encryption key.

Use aes:setupEncrypt() or aes:setupDecrypt() depending on the desired processing direction.

If the cipher block chaining operation mode is needed, an initialization vector must be configured using aes:setIV().

EXAMPLE

aes = cipher.aes()

SEE ALSO