21 lines
638 B
C
Raw Normal View History

2017-08-18 14:25:14 +08:00
#ifndef _AESACC_H_
#define _AESACC_H_
#include <stdint.h>
2017-08-18 17:38:24 +08:00
#ifdef __cplusplus
extern "C" {
#endif
2017-08-18 14:25:14 +08:00
int AESACC_supported(void);
void AESACC_ECB_encrypt(const uint8_t* input, const uint8_t* key, uint8_t *output, const uint32_t length);
void AESACC_ECB_decrypt(const uint8_t* input, const uint8_t* key, uint8_t *output, const uint32_t length);
void AESACC_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv);
void AESACC_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv);
2017-08-18 17:38:24 +08:00
#ifdef __cplusplus
}
#endif
2017-08-18 14:25:14 +08:00
#endif /* _AESACC_H_ */