7 #ifndef __MSP430WARE_AES_H__
8 #define __MSP430WARE_AES_H__
10 #include "inc/hw_memmap.h"
12 #ifdef __MSP430_HAS_AES__
31 #define AES_BUSY AESBUSY
32 #define AES_NOT_BUSY 0x00
40 #define AES_ERROR_OCCURRED AESERRFG
41 #define AES_NO_ERROR 0x00
63 const uint8_t *CipherKey);
83 uint8_t *encryptedData);
104 uint8_t *decryptedData);
121 const uint8_t *CipherKey);
202 extern void AES_reset(uint16_t baseAddress);
225 uint8_t *encryptedData);
246 const uint8_t *Data);
264 const uint8_t *CipherKey);
283 uint8_t *OutputData);
301 extern uint8_t
AES_isBusy(uint16_t baseAddress);
355 const uint8_t *Data);
375 uint8_t *decryptedData);
387 #endif // __MSP430WARE_AES_H__
uint8_t AES_decryptDataUsingEncryptionKey(uint16_t baseAddress, const uint8_t *Data, uint8_t *decryptedData)
DEPRECATED Decrypts a block of data using the AES module.
Definition: aes.c:301
uint8_t AES_decryptData(uint16_t baseAddress, const uint8_t *Data, uint8_t *decryptedData)
Decrypts a block of data using the AES module.
Definition: aes.c:83
void AES_enableInterrupt(uint16_t baseAddress)
Enables AES ready interrupt.
Definition: aes.c:154
uint8_t AES_getDataOut(uint16_t baseAddress, uint8_t *OutputData)
Reads back the output data from AES module.
Definition: aes.c:238
uint32_t AES_getErrorFlagStatus(uint16_t baseAddress)
Gets the AES error flag status.
Definition: aes.c:270
uint32_t AES_getInterruptStatus(uint16_t baseAddress)
Gets the AES ready interrupt flag status.
Definition: aes.c:149
uint8_t AES_startEncryptData(uint16_t baseAddress, const uint8_t *Data, uint8_t *encryptedData)
Starts an encryption process on the AES module.
Definition: aes.c:169
uint8_t AES_isBusy(uint16_t baseAddress)
Gets the AES module busy status.
Definition: aes.c:260
uint8_t AES_encryptData(uint16_t baseAddress, const uint8_t *Data, uint8_t *encryptedData)
Encrypts a block of data using the AES module.
Definition: aes.c:44
uint8_t AES_startDecryptData(uint16_t baseAddress, const uint8_t *Data)
Decrypts a block of data using the AES module.
Definition: aes.c:194
uint8_t AES_startDecryptDataUsingEncryptionKey(uint16_t baseAddress, const uint8_t *Data)
DEPRECATED Starts an decryption process on the AES module.
Definition: aes.c:275
uint8_t AES_startSetDecipherKey(uint16_t baseAddress, const uint8_t *CipherKey)
Loads the decipher key.
Definition: aes.c:218
void AES_clearErrorFlag(uint16_t baseAddress)
Clears the AES error flag.
Definition: aes.c:265
uint8_t AES_setCipherKey(uint16_t baseAddress, const uint8_t *CipherKey)
Loads a 128 bit cipher key to AES module.
Definition: aes.c:21
uint8_t AES_setDecipherKey(uint16_t baseAddress, const uint8_t *CipherKey)
Sets the decipher key The API.
Definition: aes.c:120
void AES_clearInterrupt(uint16_t baseAddress)
Clears the AES ready interrupt flag.
Definition: aes.c:144
void AES_disableInterrupt(uint16_t baseAddress)
Disables AES ready interrupt.
Definition: aes.c:159
void AES_reset(uint16_t baseAddress)
Resets AES Module immediately.
Definition: aes.c:164