|
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) |
|
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
◆ 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