Fix the wrong implementation about the anonymous cipher suite of tinydtls.
authorSachin Agrawal <sachin.agrawal@intel.com>
Mon, 3 Aug 2015 21:11:02 +0000 (14:11 -0700)
committerSachin Agrawal <sachin.agrawal@intel.com>
Mon, 3 Aug 2015 22:05:24 +0000 (22:05 +0000)
commit91d764e4c04861c1692f8a80f80ecc0706e59730
tree34039455a93766a1efa774633acf3214449634b0
parent3209744c0fafd6583ada1fc3a255a6ca3e19d002
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>
extlibs/tinydtls/0001-Fix-the-wrong-implementation-about-the-anonymous-cip.patch [new file with mode: 0644]
extlibs/tinydtls/crypto.c
extlibs/tinydtls/crypto.h
extlibs/tinydtls/dtls.c
extlibs/tinydtls/dtls.h
extlibs/tinydtls/global.h
extlibs/tinydtls/tests/dtls-client.c
extlibs/tinydtls/tests/dtls-server.c
resource/csdk/connectivity/api/cainterface.h
resource/csdk/connectivity/inc/caadapternetdtls.h
resource/csdk/connectivity/src/adapter_util/caadapternetdtls.c