Fix the wrong implementation about the anonymous cipher suite of tinydtls
Status: Alpha
Brought to you by:
obgm
Fix the wrong implementation about the anonymous cipher suite of tinydtls.
(NOTE : This patch has been modified based on RFC 5246)
IV for CBC block operation : Apply the random IV for CBC block operations according to section 6.2.3.2 of RFC 5246.
MAC calculation : Apply HMAC for DTLS MAC calculation according to section 6.2.3.1 of RFC 5246.
CBC padding : Apply PKCS#5 padding for CBC block cipher accroding to section 6.2.3.2 of RFC 5246.
Change the cipher suite name TLS_ECDH_anon_WITH_AES_128_CBC_SHA to TLS_ECDH_anon_WITH_AES_128_CBC_SHA_256.