libcontrac
A library for contact tracing
Data Structures | Functions
match.c File Reference

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"
Include dependency graph for match.c:

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)
 

Detailed Description

Provides a way to match collected RPIs with downloaded DTKs.

Author
David Llewellyn-Jones david.nosp@m.@fly.nosp@m.pig.c.nosp@m.o.uk
Version
0.01

LICENSE

Copyright David Llewellyn-Jones, 2020 Released under the GPLv2.

DESCRIPTION

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.