libcontrac
A library for contact tracing
Macros | Functions
rpi.h File Reference

Random Proximity Identifier functionality. More...

#include "contrac/contrac.h"
#include "contrac/dtk.h"
Include dependency graph for rpi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RPI_SIZE   (16)
 
#define RPI_SIZE_BASE64   (24)
 
#define RPI_INTERVAL_MAX   (144)
 

Functions

Rpi * rpi_new ()
 
void rpi_delete (Rpi *data)
 
bool rpi_generate_proximity_id (Rpi *data, Dtk const *dtk, uint8_t time_interval_number)
 
unsigned char const * rpi_get_proximity_id (Rpi const *data)
 
uint8_t rpi_get_time_interval_number (Rpi const *data)
 
void rpi_assign (Rpi *data, unsigned char const *rpi_bytes, uint8_t time_interval_number)
 
bool rpi_compare (Rpi const *data, Rpi const *comparitor)
 

Detailed Description

Random Proximity Identifier functionality.

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 is used to generate and manage the Random Proximity Identifier (RPI). It's largely internal. The functionality from Contrac should generally be used in preference to this.