AES (huaes.h)
The AES functions.
The AES cipher allows 128-bit, 192-bit and 256-bit keys. The AES functions are defined in huaes.h. An AES parameters object, key object and operating context are required to perform the AES algorithm. An RNG context is required if key generation will be performed. The various modes of operation are indicated by:
- SB_AES_ECB
- SB_AES_CBC
- SB_AES_CFB8
- SB_AES_CFB128
- SB_AES_OFB128
- SB_AES_KEYWRAP
- SB_AES_CTR8
- SB_AES_CTR16
- SB_AES_CTR32
- SB_AES_CTR64
- SB_AES_CTR128
- SB_AES_XTS(unitBytes)
The block size constants are:
- SB_AES_128_BLOCK_BITS
- SB_AES_128_BLOCK_BYTES
- SB_AES_KEYWRAP_BLOCK_BITS
- SB_AES_KEYWRAP_BLOCK_BYTES
- SB_AES_128_KEY_BITS
- SB_AES_128_KEY_BYTES
- SB_AES_192_KEY_BITS
- SB_AES_192_KEY_BYTES
- SB_AES_256_KEY_BITS
- SB_AES_256_KEY_BYTES
- SB_AES_128_XTS_KEY_BITS
- SB_AES_128_XTS_KEY_BYTES
- SB_AES_256_XTS_KEY_BITS
- SB_AES_256_XTS_KEY_BYTES