libcontrac
A library for contact tracing
|
Provides a way to match collected RPIs with downloaded DTKs. More...
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include <openssl/crypto.h>
#include <openssl/hmac.h>
#include <openssl/err.h>
#include "contrac/contrac.h"
#include "contrac/utils.h"
#include "contrac/log.h"
#include "contrac/rpi_list.h"
#include "contrac/dtk_list.h"
#include "contrac/match.h"
Data Structures | |
struct | MatchListItem |
A match list element. More... | |
struct | MatchList |
The head of a match list. More... | |
Functions | |
MatchListItem * | match_list_item_new () |
void | match_list_item_delete (MatchListItem *data) |
void | match_list_append (MatchList *data, MatchListItem *item) |
MatchList * | match_list_new () |
void | match_list_delete (MatchList *data) |
void | match_list_clear (MatchList *data) |
size_t | match_list_count (MatchList *data) |
MatchListItem const * | match_list_first (MatchList const *data) |
MatchListItem const * | match_list_next (MatchListItem const *data) |
uint32_t | match_list_get_day_number (MatchListItem const *data) |
uint8_t | match_list_get_time_interval_number (MatchListItem const *data) |
void | match_list_find_matches (MatchList *data, RpiList *beacons, DtkList *diagnosis_keys) |
Provides a way to match collected RPIs with downloaded DTKs.
Copyright David Llewellyn-Jones, 2020 Released under the GPLv2.
This class provides functionality allowing RPIs that have been collected over Bluetooth to be matched against DTKs downloaded from a Diagnosis Server.
The list of RPIs and DTKs can be constructed easily using the Container functions.