Lines Matching defs:bitmap
171 static int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap);
172 static void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap);
535 dtls1_record_bitmap_update(s, &(s->d1->bitmap));/* Mark receipt of record. */
561 DTLS1_BITMAP *bitmap;
663 bitmap = dtls1_get_bitmap(s, rr, &is_next_epoch);
664 if ( bitmap == NULL)
684 !dtls1_record_replay_check(s, bitmap))
1645 static int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap)
1651 cmp = satsub64be(seq,bitmap->max_seq_num);
1658 if (shift >= sizeof(bitmap->map)*8)
1660 else if (bitmap->map & (1UL<<shift))
1668 static void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap)
1674 cmp = satsub64be(seq,bitmap->max_seq_num);
1678 if (shift < sizeof(bitmap->map)*8)
1679 bitmap->map <<= shift, bitmap->map |= 1UL;
1681 bitmap->map = 1UL;
1682 memcpy(bitmap->max_seq_num,seq,8);
1686 if (shift < sizeof(bitmap->map)*8)
1687 bitmap->map |= 1UL<<shift;
1765 return &s->d1->bitmap;
1854 memcpy(&(s->d1->bitmap), &(s->d1->next_bitmap), sizeof(DTLS1_BITMAP));