libcontrac
A library for contact tracing
|
Random Proximity Identifier functionality. More...
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) |
Random Proximity Identifier functionality.
Copyright David Llewellyn-Jones, 2020 Released under the GPLv2.
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.