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

Daily Tracing Key functionality. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DTK_SIZE   (16)
 
#define DTK_SIZE_BASE64   (24)
 

Functions

Dtk * dtk_new ()
 
void dtk_delete (Dtk *data)
 
bool dtk_generate_daily_key (Dtk *data, Contrac const *contrac, uint32_t day_number)
 
unsigned char const * dtk_get_daily_key (Dtk const *data)
 
uint32_t dtk_get_day_number (Dtk const *data)
 
void dtk_assign (Dtk *data, unsigned char const *dtk_bytes, uint32_t day_number)
 

Detailed Description

Daily Tracing Key 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 Daily Tracing Key (DTK). It's largely internal. The functionality from Contrac should generally be used in preference to this.