SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions
aesExpandKey

Functions

template<domain D :shared3p >
D xor_uint32 aes128ExpandKey (D xor_uint32 aeskey)
 
template<domain D :shared3p >
D xor_uint32 aes192ExpandKey (D xor_uint32 aeskey)
 
template<domain D :shared3p >
D xor_uint32 aes256ExpandKey (D xor_uint32 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()

template<domain D :shared3p >
D xor_uint32 aes128ExpandKey ( D xor_uint32  aeskey)
Precondition
the size of aeskey has to be dividable by AES128_Nk

◆ aes192ExpandKey()

template<domain D :shared3p >
D xor_uint32 aes192ExpandKey ( D xor_uint32  aeskey)
Precondition
the size of aeskey has to be dividable by AES192_Nk

◆ aes256ExpandKey()

template<domain D :shared3p >
D xor_uint32 aes256ExpandKey ( D xor_uint32  aeskey)
Precondition
the size of aeskey has to be dividable by AES256_Nk