| #ifndef H_ASR_HW_AES_H |
| #define H_ASR_HW_AES_H |
| |
| |
| int aes_ecb_encrypt(const uint8_t *key, uint32_t keylen, bool use_rkek, |
| const void* plaintext, void* ciphertext, size_t size); |
| int aes_ecb_decrypt(const uint8_t *key, uint32_t keylen, bool use_rkek, |
| const void* ciphertext, void* plaintext, size_t size); |
| int aes_cbc_encrypt(const uint8_t *iv, const uint8_t *key, uint32_t keylen, |
| bool use_rkek, const void* plaintext, void* ciphertext, size_t size); |
| int aes_cbc_decrypt(const uint8_t *iv, const uint8_t *key, uint32_t keylen, |
| bool use_rkek, const void* ciphertext, void* plaintext, size_t size); |
| #endif |