On May 10, 2011, at 1:49 AM, Viktor Zsoldos wrote:
> - I've installed the BaseStation from apps/tests/cc2420/TestSecurity, and 
> trying to read the secured traffic with net.tinyos.tools.Listen, but only 
> ordinary headers are showing (dst, src, len, gID, hID), I can't see any 
> CC2420 or security related headers. They must be there, since I can read out 
> e.g. the frameCounter field from security_header_t with a mote, and put the 
> value to LEDs. What's the trick?

  Try modifying the BaseStation such that it also reads out the 
security_header_t directly (as you did with other motes) . I assume the 
BaseStation just doesn't forward the header, but it's there.

> - With CBC-MAC mode if I change the key value of the sender mote, the 
> receiver will still happily accept the packet with the wrong MAC. Do I have 
> to 
> generate the MAC at the receiver manually to check if it equals to the 
> received one?

  The CC2420 chip sets the last byte of the MAC according to the verification 
result. If I recall correctly, 0x00 = MIC ok, else MIC not ok.

Best,
Jakob
-- 
net.cs.bonn.edu/bieling


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

Reply via email to