Home
last modified time | relevance | path

Searched refs:epoch (Results 1 – 5 of 5) sorted by relevance

/net-tools-2.7.6/tinydtls-0.8.2/
Dpeer.h68 …ic inline dtls_security_parameters_t *dtls_security_params_epoch(dtls_peer_t *peer, uint16_t epoch) in dtls_security_params_epoch() argument
70 if (peer->security_params[0] && peer->security_params[0]->epoch == epoch) { in dtls_security_params_epoch()
72 } else if (peer->security_params[1] && peer->security_params[1]->epoch == epoch) { in dtls_security_params_epoch()
93 peer->security_params[1]->epoch = peer->security_params[0]->epoch + 1; in dtls_security_params_next()
102 if (!security0 || !security1 || security0->epoch < security1->epoch) in dtls_security_params_free_other()
Dnetq.h45 uint16_t epoch; member
Ddtls.h334 uint16 epoch; /**< counter for cipher state changes */ member
Ddtls.c60 #define dtls_get_epoch(H) dtls_uint16_to_int((H)->epoch)
400 dtls_int_to_uint16(buf, security->epoch); in dtls_set_record_header()
1269 memcpy(p, &DTLS_RECORD_HEADER(sendbuf)->epoch, 8); in dtls_prepare_record()
1299 memcpy(A_DATA, &DTLS_RECORD_HEADER(sendbuf)->epoch, 8); /* epoch and seq_num */ in dtls_prepare_record()
1390 (dtls_uint16_to_int(DTLS_RECORD_HEADER(Data)->epoch > 0) || \
1449 n->epoch = (security) ? security->epoch : 0; in dtls_send_multi()
2926 memcpy(A_DATA, &DTLS_RECORD_HEADER(packet)->epoch, 8); /* epoch and seq_num */ in decrypt_verify()
3684 uint16_t expected_epoch = dtls_security_params(peer)->epoch; in dtls_handle_message()
3686 dtls_uint16_to_int(DTLS_RECORD_HEADER(msg)->epoch); in dtls_handle_message()
3902 dtls_security_parameters_t *security = dtls_security_params_epoch(node->peer, node->epoch); in dtls_retransmit()
Dcrypto.h103 uint16_t epoch; /**< counter for cipher state changes*/ member