blob: ccb0610e962bff362e89d904e71ae5a8ca9ca05f [file] [log] [blame]
#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