This is an old revision of the document!
Velciu Veronica-Mihaela - AAC
Nowadays, security becomes a great concern, as the devices start to process more and more sensitive data, leading to an increased number of attacks. The nodes in an wireless sensors network usually collect environment-related information and then send the data to a gateway, in order to be processed. There might be cases when the collected information leaks sensitive user data, so encrypting the communication would be a good practice is this cases. This project proposes and implements a method of securing the radio communication using symmetric cryptography on Sparrow v4 nodes.
The security module (AES) is characterized by:
Controlling the security block is possible over 5 Registers within AVR I/O space:
The use of the security module requires a configuration of the security engine before starting a security operation. The following steps are required:
In order to make use of the Security module presented in the previous section, I implemented a driver exposed as an Arduino library named AES. The library has the following interface:
void encryptECB(uint8_t *key, uint8_t *plaintext, uint8_t len, uint8_t *ciphertext); void decryptECB(uint8_t *key, uint8_t *ciphertext, uint8_t len, uint8_t *plaintext); void encryptCBC(uint8_t *key, uint8_t *iv, uint8_t *plaintext, uint8_t len, uint8_t *ciphertext);