Lines Matching refs:hs_state
437 dtls_int_to_uint16(buf, peer->handshake_params->hs_state.mseq_s); in dtls_set_handshake_header()
440 peer->handshake_params->hs_state.mseq_s++; in dtls_set_handshake_header()
1072 dtls_hash_update(&peer->handshake_params->hs_state.hs_hash, data, length); in update_hs_hash()
1077 memcpy(hs_hash, &peer->handshake_params->hs_state.hs_hash, in copy_hs_hash()
1078 sizeof(peer->handshake_params->hs_state.hs_hash)); in copy_hs_hash()
1083 return dtls_hash_finalize(buf, &peer->handshake_params->hs_state.hs_hash); in finalize_hs_hash()
1090 dtls_hash_init(&peer->handshake_params->hs_state.hs_hash); in clear_hs_hash()
1123 memcpy(b.statebuf, &peer->handshake_params->hs_state.hs_hash, DTLS_HASH_CTX_SIZE); in check_finished()
1129 memcpy(&peer->handshake_params->hs_state.hs_hash, b.statebuf, DTLS_HASH_CTX_SIZE); in check_finished()
2973 peer->handshake_params->hs_state.mseq_r = 0; in dtls_renegotiate()
2974 peer->handshake_params->hs_state.mseq_s = 0; in dtls_renegotiate()
3270 peer->handshake_params->hs_state.mseq_r = dtls_uint16_to_int(hs_header->message_seq); in handle_handshake_msg()
3271 peer->handshake_params->hs_state.mseq_s = 1; in handle_handshake_msg()
3321 peer->handshake_params->hs_state.mseq_r = 0; in handle_handshake_msg()
3322 peer->handshake_params->hs_state.mseq_s = 0; in handle_handshake_msg()
3340 peer->handshake_params->hs_state.mseq_r++; in handle_handshake_msg()
3381 if (dtls_uint16_to_int(hs_header->message_seq) < peer->handshake_params->hs_state.mseq_r) { in handle_handshake()
3383 peer->handshake_params->hs_state.mseq_r, dtls_uint16_to_int(hs_header->message_seq)); in handle_handshake()
3385 } else if (dtls_uint16_to_int(hs_header->message_seq) > peer->handshake_params->hs_state.mseq_r) { in handle_handshake()
3421 …} else if (dtls_uint16_to_int(hs_header->message_seq) == peer->handshake_params->hs_state.mseq_r) { in handle_handshake()
3436 … if (dtls_uint16_to_int(node_header->message_seq) == peer->handshake_params->hs_state.mseq_r) { in handle_handshake()
3849 peer->handshake_params->hs_state.mseq_r = 0; in dtls_connect_peer()
3850 peer->handshake_params->hs_state.mseq_s = 0; in dtls_connect_peer()