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

Functions

template<domain D :shared3p >
D xor_uint32 aes128Genkey (uint blocks)
 
template<domain D :shared3p >
D xor_uint32 aes192Genkey (uint blocks)
 
template<domain D :shared3p >
D xor_uint32 aes256Genkey (uint blocks)
 

Detailed Description

Function for generating a key for AES encryption.

Parameters
blocks- an uint type value
Returns
returns a vector of type xor_uint32 with a randomly generated key

Function Documentation

◆ aes128Genkey()

D xor_uint32 aes128Genkey ( uint  blocks)
Precondition
( uint max value ) / AES128_Nk >= blocks

◆ aes192Genkey()

D xor_uint32 aes192Genkey ( uint  blocks)
Precondition
( uint max value ) / AES192_Nk >= blocks

◆ aes256Genkey()

D xor_uint32 aes256Genkey ( uint  blocks)
Precondition
( uint max value ) / AES256_Nk >= blocks