Lines Matching refs:DTLS_HS_LENGTH

74 #define DTLS_HS_LENGTH sizeof(dtls_handshake_header_t)  macro
89 #define HS_HDR_LENGTH DTLS_RH_LENGTH + DTLS_HS_LENGTH
264 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()
327 if (e + DTLS_HS_LENGTH > msglen) in dtls_create_cookie()
331 msg + DTLS_HS_LENGTH + e, in dtls_create_cookie()
909 assert(data_length > DTLS_HS_LENGTH + DTLS_CH_LENGTH); in dtls_update_parameters()
912 data += DTLS_HS_LENGTH + sizeof(uint16); in dtls_update_parameters()
913 data_length -= DTLS_HS_LENGTH + sizeof(uint16); in dtls_update_parameters()
1012 if (length < DTLS_HS_LENGTH + DTLS_CKXEC_LENGTH) { in check_client_keyexchange()
1016 data += DTLS_HS_LENGTH; in check_client_keyexchange()
1043 if (length < DTLS_HS_LENGTH + DTLS_CKXPSK_LENGTH_MIN) { in check_client_keyexchange()
1047 data += DTLS_HS_LENGTH; in check_client_keyexchange()
1052 if (DTLS_HS_LENGTH + DTLS_CKXPSK_LENGTH_MIN + id_length != length) { in check_client_keyexchange()
1110 if (data_length < DTLS_HS_LENGTH + DTLS_FIN_LENGTH) in check_finished()
1146 dtls_debug_dump("d:", data + DTLS_HS_LENGTH, sizeof(b.verify_data)); in check_finished()
1150 return equals(data + DTLS_HS_LENGTH, b.verify_data, sizeof(b.verify_data)) in check_finished()
1330 uint8 buf[DTLS_HS_LENGTH]; in dtls_send_handshake_msg_hash()
1704 data += DTLS_HS_LENGTH; in check_client_certificate_verify()
1706 if (data_length < DTLS_HS_LENGTH + DTLS_CV_LENGTH) { in check_client_certificate_verify()
2471 if (data_length < DTLS_HS_LENGTH + DTLS_HS_LENGTH) in check_server_hello()
2484 data += DTLS_HS_LENGTH; in check_server_hello()
2485 data_length -= DTLS_HS_LENGTH; in check_server_hello()
2537 if (data_length < DTLS_HS_LENGTH + DTLS_HV_LENGTH) in check_server_hello_verify_request()
2540 hv = (dtls_hello_verify_t *)(data + DTLS_HS_LENGTH); in check_server_hello_verify_request()
2563 data += DTLS_HS_LENGTH; in check_server_certificate()
2618 data += DTLS_HS_LENGTH; in check_server_key_exchange_ecdsa()
2620 if (data_length < DTLS_HS_LENGTH + DTLS_SKEXEC_LENGTH) { in check_server_key_exchange_ecdsa()
2698 data += DTLS_HS_LENGTH; in check_server_key_exchange_psk()
2700 if (data_length < DTLS_HS_LENGTH + DTLS_SKEXECPSK_LENGTH_MIN) { in check_server_key_exchange_psk()
2708 if (len != data_length - DTLS_HS_LENGTH - sizeof(uint16)) { in check_server_key_exchange_psk()
2739 data += DTLS_HS_LENGTH; in check_certificate_request()
2741 if (data_length < DTLS_HS_LENGTH + 5) { in check_certificate_request()
3354 if (data_length < DTLS_HS_LENGTH) { in handle_handshake()