-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdp3t-config.h
More file actions
31 lines (26 loc) · 713 Bytes
/
dp3t-config.h
File metadata and controls
31 lines (26 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* Copyright (C) 2020 Dyne.org foundation
*
* This file is subject to the terms and conditions of the Affero GNU
* General Public License (AGPL) version 3. See the file LICENSE for
* more details.
*
*/
#ifndef DP3T_CONFIG_H
#define DP3T_CONFIG_H
#include <stdint.h>
/* SK / EPHID / SHA base parameters
*/
#define SK_LEN 32
#define SHA256_LEN 32
#define EPHID_LEN 16
/* Use-case DP3-T parameters */
#define TTL (180) // In minutes
#define EPOCHS (((24 * 60) / TTL) + 1)
#define RETENTION_PERIOD (14) // In days
#define BROADCAST_KEY "Broadcast key"
#define BROADCAST_KEY_LEN 13UL
/* Bluetooth scan/adv timing (in milliseconds) */
#define BLESCAN_INTERVAL 58000
#define BLESCAN_DURATION 2000
#endif