Lines Matching defs:epoch
29 uint16_t epoch;
290 uint16_t epoch)
292 rl->initial_epoch = epoch;
298 return rl->read->epoch;
304 return rl->write->epoch;
308 tls12_record_layer_use_write_epoch(struct tls12_record_layer *rl, uint16_t epoch)
310 if (rl->write->epoch == epoch)
313 if (rl->write_current->epoch == epoch) {
318 if (rl->write_previous != NULL && rl->write_previous->epoch == epoch) {
327 tls12_record_layer_write_epoch_done(struct tls12_record_layer *rl, uint16_t epoch)
329 if (rl->write_previous == NULL || rl->write_previous->epoch != epoch)
342 rl->read->epoch = rl->initial_epoch;
349 rl->write->epoch = rl->initial_epoch;
375 * bytes are used as an "epoch" and not part of the sequence number.
544 /* DTLS epoch is incremented and is permitted to wrap. */
546 read_new->epoch = rl->read_current->epoch + 1;
576 /* DTLS epoch is incremented and is permitted to wrap. */
578 write_new->epoch = rl->write_current->epoch + 1;
603 uint16_t epoch, uint8_t *seq_num, size_t seq_num_len)
610 if (!CBB_add_u16(cbb, epoch))
1070 * The DTLS sequence number is split into a 16 bit epoch and
1264 if (!tls12_record_layer_build_seq_num(rl, &seq_num_cbb, rl->write->epoch,