SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions
aesExpandKey

Functions

template<domain D :shared3p >
D xor_uint32 aes128ExpandKey (D xor_uint32[[1]] aeskey)
 
template<domain D :shared3p >
D xor_uint32 aes192ExpandKey (D xor_uint32[[1]] aeskey)
 
template<domain D :shared3p >
D xor_uint32 aes256ExpandKey (D xor_uint32[[1]] aeskey)
 

Detailed Description

Function for expanding a randomly generated AES key.

Parameters
aeskey- a 1-dimensional array of type xor_uint32. See also aesGenkey
Returns
returns a vector of type xor_uint32 with an expanded key
Leakage
None

Function Documentation

◆ aes128ExpandKey()

D xor_uint32 aes128ExpandKey ( D xor_uint32[[1]]  aeskey)
Precondition
the size of aeskey has to be dividable by AES128_Nk

◆ aes192ExpandKey()

D xor_uint32 aes192ExpandKey ( D xor_uint32[[1]]  aeskey)
Precondition
the size of aeskey has to be dividable by AES192_Nk

◆ aes256ExpandKey()

D xor_uint32 aes256ExpandKey ( D xor_uint32[[1]]  aeskey)
Precondition
the size of aeskey has to be dividable by AES256_Nk