class Aes

Methods

static array
cipher(input $input, w $w)

AES Cipher function: encrypt 'input' with Rijndael algorithm

static array
keyExpansion(key $key)

Key expansion for Rijndael cipher(): performs key expansion on cipher key to generate a key schedule

Details

at line 21
static array cipher(input $input, w $w)

AES Cipher function: encrypt 'input' with Rijndael algorithm

Parameters

input $input message as byte-array (16 bytes)
w $w key schedule as 2D byte-array (Nr+1 x Nb bytes) - generated from the cipher key by keyExpansion()

Return Value

array ciphertext as byte-array (16 bytes)

at line 94
static array keyExpansion(key $key)

Key expansion for Rijndael cipher(): performs key expansion on cipher key to generate a key schedule

Parameters

key $key cipher key byte-array (16 bytes)

Return Value

array key schedule as 2D byte-array (Nr+1 x Nb bytes)