Fix the wrong implementation about the anonymous cipher suite of tinydtls.
(NOTE : This patch has been modified based on RFC 5246)
1. IV for CBC block operation
- Apply the random IV for CBC block operations according to section 6.2.3.2 of RFC 5246.
2. MAC calculation
- Apply HMAC for DTLS MAC calculation according to section 6.2.3.1 of RFC 5246.
3. CBC padding
- Apply PKCS#5 padding for CBC block cipher accroding to section 6.2.3.2 of RFC 5246.
4. Change the cipher suite name TLS_ECDH_anon_WITH_AES_128_CBC_SHA
to TLS_ECDH_anon_WITH_AES_128_CBC_SHA_256.
5. Fix the minor bug in dtls sample.
Change-Id: I8783caa6ac04fe2d46e242efe56e3205646b1038
Signed-off-by: leechul <chuls.lee@samsung.com>
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1965
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>