Hi, I have been trying to implement the in-line AES encryption/decryption on Tmote using Tinyos 1.x. I managed to use the stand-alone encyption. However, according to the notes from Kun Sun, I have to perform the following:
//Set the register, I set it to 0x30E to use CTR mode call HPLChipcon.write(CC2420_SECCTRL0, 0x030E); //Set the CTRL1 register, the length for TX and RX is 3 respectively call HPLChipcon.write(CC2420_SECCTRL1, 0x0183); //Write the encryption key call HPLChipconRAM.write(CC2420_RAM_KEY0, 16, secret_key); Later on, the note says that I should include call HPLChipcon.cmd(CC2420_STXONCCA) in function "void sendPacket()" in the "tos\lib\CC2420Radio\CC2420RadioM.nc". However, when I opened this file, the STXONCCA strobe has already been incorporated in the code. But the in-line encryption didn't happen. I am wondering is there anything that I need to do? I am using the genericComm component to send the message. I've also tried CC2420RadioC.send and CC2420RadioC.receive , but the data is not encrypted either. Any help and pointer to a better documentation would be very much appreciated. Thanks Sye Loong
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
