Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tinydtls-dev] About tinyDTLS Implementation

Hi Ameya Joshi,

For question 1, I'm not sure if the client was modified from my last time I played with it (May 2016). But in that time, there was a simple array called buff, with an auxiliary variable called bufflen for identifying the data to send (I modified them to always send a static fixed string, so I could be wrong).

For questions 2 and  4, the best way to inspect the process is with Wireshark. For that, you need to enable Cooja to store  the packets in a pcap file [1]. Also, In a default installation of tinydtls, the server should be selecting the Raw Publick Key mode with the  TLS_ECDHE_ECDSA_WIITH_AES_128_CCM_8 cipher suite (ID 0xC0AE) but the client should be offering both of them: RPK and PSK with the TLS_PSK_WITH_AES_128_CCM_8 cipher suite (ID 0xC0A8) .

For question 3,  the example made use of callbacks which are configured in the client and server when you declare the structure " static dtls_handler_t cb"

[1] http://permalink.gmane.org/gmane.os.contiki.devel/6119
 

P.S. Seems that the current documentation for Contiki is outdated. At least is not reflecting the changes made in the last commit.

Sincerely, Raul Fuentes


2017-04-04 6:21 GMT+02:00 Ameya Joshi <joshi@xxxxxxxxxxxx>:
Hi,
       
    I am new to tinyDTLS & Contiki. I have implemented tinyDTLS in Contiki OS using cooja simulator. But I am not understanding the functioning of dtls-client.c & dtls-server.c which are in example folder. 
    I have following doubts:
    1.What is the actual data that client or server is sending.? 
    2.How key sharing is happening.? 
    3.Where that send_to_peer & read_from_peer functions are getting called.? 
    4.How to check/confirm communication is happening securely.?
     It will be very helpful if you can share any information that would help me to clear above doubts.

Thanks & Regards,
Ameya Joshi
Hyderabad, India. 500032


_______________________________________________
tinydtls-dev mailing list
tinydtls-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tinydtls-dev



Back to the top