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

aes:cbcDecrypt, aes:cbcEncrypt, aes:clearIV, aes:decrypt, aes:encrypt, aes:getIV, aes:padDecrypt, aes:padEncrypt, aes:setIV, aes:setupDecrypt, aes:setupEncrypt, cipher.random

AES, Block cipher modes of operation