Lines Matching defs:bitmap
182 static int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap,
184 static void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap,
412 DTLS1_BITMAP *bitmap;
498 bitmap = dtls1_get_bitmap(s, rr, &is_next_epoch);
499 if (bitmap == NULL)
511 !dtls1_record_replay_check(s, bitmap, rr->seq_num))
529 dtls1_record_bitmap_update(s, bitmap, rr->seq_num);
538 dtls1_record_bitmap_update(s, bitmap, rr->seq_num);
1047 dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap,
1053 cmp = satsub64be(seq, bitmap->max_seq_num);
1057 if (shift >= sizeof(bitmap->map)*8)
1059 else if (bitmap->map & (1UL << shift))
1066 dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap,
1072 cmp = satsub64be(seq, bitmap->max_seq_num);
1075 if (shift < sizeof(bitmap->map)*8)
1076 bitmap->map <<= shift, bitmap->map |= 1UL;
1078 bitmap->map = 1UL;
1079 memcpy(bitmap->max_seq_num, seq, 8);
1082 if (shift < sizeof(bitmap->map) * 8)
1083 bitmap->map |= 1UL << shift;
1099 return &s->d1->bitmap;
1114 memcpy(&(s->d1->bitmap), &(s->d1->next_bitmap), sizeof(DTLS1_BITMAP));