Add initial crypto functionality
authorDavid Llewellyn-Jones <david@flypig.co.uk>
Sun, 19 Apr 2020 16:18:30 +0000 (19:18 +0300)
committerDavid Llewellyn-Jones <david@flypig.co.uk>
Sun, 19 Apr 2020 16:18:30 +0000 (19:18 +0300)
commit8515bbba069347de07a452586d7e49a2e8bdf151
treef2ca72432cd5b0afd69d75efad15b9d8eed34161
parent79942abab927241b65a29a8a30d71b8efe6b6d94
Add initial crypto functionality

Adds the functionality from the crypto spec:

1. Generate random Tracing Keys.
2. Generate Daily Tracing Keys.
3. Generate Rolling Proximity Identifiers.
4. Match a list of collected beacons (RPIs) with a list of downloaded
diagnosis keys (DTKs).

Includes unit tests, but these don't currently use the official test
vectors because I don't yet know how I can get hold of them.
19 files changed:
include/contrac/contrac.h
include/contrac/contrac_private.h [new file with mode: 0644]
include/contrac/dtk.h [new file with mode: 0644]
include/contrac/dtk_list.h [new file with mode: 0644]
include/contrac/log.h [new file with mode: 0644]
include/contrac/match.h [new file with mode: 0644]
include/contrac/rpi.h [new file with mode: 0644]
include/contrac/rpi_list.h [new file with mode: 0644]
include/contrac/utils.h [new file with mode: 0644]
src/Makefile.am
src/contrac.c
src/dtk.c [new file with mode: 0644]
src/dtk_list.c [new file with mode: 0644]
src/log.c [new file with mode: 0644]
src/match.c [new file with mode: 0644]
src/rpi.c [new file with mode: 0644]
src/rpi_list.c [new file with mode: 0644]
src/utils.c [new file with mode: 0644]
tests/test_contrac.c