Hello everyone.

I am trying to verify proper functionality of the in-line operations (CTR,  
CBC-MAC and CCM). However, I have stumbled upon a number of issues.

- If using the example application RadioCountToLeds (RC) and the  
corresponding BaseStation (BS), if I use encryption, the output from BS is  
again decrypted (hopefully), similarly, the MAC is added to the message  
length but the bytes are zeroed out. How can I verify these bytes before  
they are decrypted or zeroed out?

- A corresponding issue with the previous one is that if I change the keys  
used in RC and BS so that they are distinct, the decryption (and similarly  
the MAC) should output different bytes than what was encrypted. Similarly,  
I tried using the default apps/BaseStation with just the TFRAMES_ENABLED  
flag and without CC2420_HW_SECURITY and without setting up any keys and  
the output was identical to the one of  
apps/tests/cc2420/TestSecurity/BaseStation except the byte after the  
length byte that I don't really know what exactly it indicates, but was  
0x22 in the "secure" BS and 0x00 in the other one. Why is the output the  
same when the decryption should fail or not be performed at all and the  
MAC is still zeroed out?

- This brings me to another question of what exactly does the flag  
TFRAMES_ENABLED signalize? In the corresponding TEP it is said, that only  
CC2420_HW_SECURITY is necessary to be set in order to enable the in-line  
security. However, without the TFRAMES_ENABLED, compilation of the program  
fails with errors such as: SecAMSenderP.nc:69:3: error: lvalue required as  
left operand of assignment. Any ideas what the flag is and why is it  
needed? Or can I circumvent it somehow?

- Finally, I tried to run ListenRaw on either of the BSs, but I guess it  
is just not meant for those, is that right? From what I figured, it is  
solely for the Oscillator app and not usable to my problem?

Cheers,
Filip
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to