Hello,

I would like to port MiniSec to TinyOS 2.x, which is a security protocol
similar to TinySec. MiniSec has been designed for TinyOS 1.x,  and the
authors of the protocol basically have redone the TinyOS 1.x network stack
to allow for encryption and decryption so that the packet is encrypted right
before it is sent to the radio  (via BareSendMsg), instead of sending a
packet directly to the radio. So, basically, like this:

Standard TinyOS 1.x stack:
AMStandard -> BareSendMsg (as RadioSend)

MiniSec stack:
AMStandard -> Encrypt data -> BareSendMsg (as RadioSend)

I have looked at the TinyOS 2.x network stack, and am I correct in saying
that I would only need to copy & paste the MiniSec code into
AMQueueEntryP.nc where AMSend.send is defined, right before a call is made
to Send.send ? Is it correct to make the changes here or am I missing
something ?

I am slightly confused at how the fields in the packet are specified in
TinyOS 2.x, where a packet is formulated before being sent to the radio (or
link layer) ? Are all network layer operations on the packet completed when
a call is made to Send.send and the  packet is sent to the link layer (or
radio) ? If not, in which component are final packet operations done, right
before the packet is sent to the radio or link layer ? Is it in
CC2420ActiveMessageC ?

Thank you
Mohammed
-- 
View this message in context: 
http://www.nabble.com/Help-on-TinyOS-2.x-network-stack-tp20816352p20816352.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

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

Reply via email to