7 #ifndef __MSP430WARE_AES256_H__
8 #define __MSP430WARE_AES256_H__
10 #include "inc/hw_memmap.h"
12 #ifdef __MSP430_HAS_AES256__
32 #define AES256_KEYLENGTH_128BIT 128
33 #define AES256_KEYLENGTH_192BIT 192
34 #define AES256_KEYLENGTH_256BIT 256
42 #define AES256_ERROR_OCCURRED AESERRFG
43 #define AES256_NO_ERROR 0x00
51 #define AES256_BUSY AESBUSY
52 #define AES256_NOT_BUSY 0x00
60 #define AES256_READY_INTERRUPT AESRDYIE
61 #define AES256_NOTREADY_INTERRUPT 0x00
91 const uint8_t *cipherKey,
112 uint8_t *encryptedData);
133 uint8_t *decryptedData);
155 const uint8_t *cipherKey,
262 const uint8_t *data);
283 const uint8_t *data);
305 const uint8_t *cipherKey,
324 uint8_t *outputData);
387 #endif // __MSP430WARE_AES256_H__
void AES256_decryptData(uint16_t baseAddress, const uint8_t *data, uint8_t *decryptedData)
Decrypts a block of data using the AES256 module.
Definition: aes256.c:98
uint16_t AES256_isBusy(uint16_t baseAddress)
Gets the AES256 module busy status.
Definition: aes256.c:311
void AES256_encryptData(uint16_t baseAddress, const uint8_t *data, uint8_t *encryptedData)
Encrypts a block of data using the AES256 module.
Definition: aes256.c:62
uint8_t AES256_getDataOut(uint16_t baseAddress, uint8_t *outputData)
Reads back the output data from AES256 module.
Definition: aes256.c:289
void AES256_reset(uint16_t baseAddress)
Resets AES256 Module immediately.
Definition: aes256.c:199
void AES256_startDecryptData(uint16_t baseAddress, const uint8_t *data)
Decrypts a block of data using the AES256 module.
Definition: aes256.c:226
uint8_t AES256_setDecipherKey(uint16_t baseAddress, const uint8_t *cipherKey, uint16_t keyLength)
Sets the decipher key.
Definition: aes256.c:133
void AES256_enableInterrupt(uint16_t baseAddress)
Enables AES256 ready interrupt.
Definition: aes256.c:189
uint8_t AES256_setCipherKey(uint16_t baseAddress, const uint8_t *cipherKey, uint16_t keyLength)
Loads a 128, 192 or 256 bit cipher key to AES256 module.
Definition: aes256.c:21
void AES256_clearErrorFlag(uint16_t baseAddress)
Clears the AES256 error flag.
Definition: aes256.c:316
void AES256_disableInterrupt(uint16_t baseAddress)
Disables AES256 ready interrupt.
Definition: aes256.c:194
uint8_t AES256_startSetDecipherKey(uint16_t baseAddress, const uint8_t *cipherKey, uint16_t keyLength)
Sets the decipher key.
Definition: aes256.c:248
uint32_t AES256_getErrorFlagStatus(uint16_t baseAddress)
Gets the AES256 error flag status.
Definition: aes256.c:321
uint32_t AES256_getInterruptStatus(uint16_t baseAddress)
Gets the AES256 ready interrupt flag status.
Definition: aes256.c:184
void AES256_clearInterrupt(uint16_t baseAddress)
Clears the AES256 ready interrupt flag.
Definition: aes256.c:179
void AES256_startEncryptData(uint16_t baseAddress, const uint8_t *data)
Starts an encryption process on the AES256 module.
Definition: aes256.c:204