Searched refs:DTLS_HS_LENGTH (Results 1 – 1 of 1) sorted by relevance
74 #define DTLS_HS_LENGTH sizeof(dtls_handshake_header_t) macro89 #define HS_HDR_LENGTH DTLS_RH_LENGTH + DTLS_HS_LENGTH264 if (msglen < DTLS_HS_LENGTH + DTLS_CH_LENGTH + sizeof(uint8)) in dtls_get_cookie()267 if (dtls_uint16_to_int(msg + DTLS_HS_LENGTH) != DTLS_VERSION) in dtls_get_cookie()270 msglen -= DTLS_HS_LENGTH + DTLS_CH_LENGTH; in dtls_get_cookie()271 msg += DTLS_HS_LENGTH + DTLS_CH_LENGTH; in dtls_get_cookie()318 e += (*(msg + DTLS_HS_LENGTH + e) & 0xff) + sizeof(uint8); in dtls_create_cookie()319 if (e + DTLS_HS_LENGTH > msglen) in dtls_create_cookie()322 dtls_hmac_update(&hmac_context, msg + DTLS_HS_LENGTH, e); in dtls_create_cookie()325 e += *(uint8 *)(msg + DTLS_HS_LENGTH + e) & 0xff; in dtls_create_cookie()[all …]