4 #ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_DRIVERS_AES_H_
5 #define OPENTITAN_SW_DEVICE_LIB_CRYPTO_DRIVERS_AES_H_
9 #include "sw/device/lib/base/status.h"
17 kAesBlockNumBits = 128,
19 kAesBlockNumBytes = kAesBlockNumBits / 8,
21 kAesBlockNumWords = kAesBlockNumBytes /
sizeof(uint32_t),
28 uint32_t data[kAesBlockNumWords];
37 typedef enum aes_cipher_mode {
38 kAesCipherModeEcb = 0x533,
39 kAesCipherModeCbc = 0x45d,
40 kAesCipherModeCfb = 0xcd2,
41 kAesCipherModeOfb = 0x39a,
42 kAesCipherModeCtr = 0xd2c,
159 #endif // OPENTITAN_SW_DEVICE_LIB_CRYPTO_DRIVERS_AES_H_