forked from mohammadhamad/SEEMQTT
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.h
50 lines (33 loc) · 1023 Bytes
/
config.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef CONFIG_H_
#define CONFIG_H_
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <regex.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <ctype.h>
//#define CRYP_DBG
#define DBG /* Debuging Messges */
//#define DDBG /* Print more debuging messeges */
#define SELF_TEST
#define TOPIC_SIZE 50
#define BLOCK_SIZE 16
#define NONCE_SIZE 16
#define MAX_TEXT_SIZE 1024
#define PKLEN 273
#define HASH_LEN 32
/* Shamir Secret Sharing Params */
#define PRIME 257 /* Debuging Messges */
#define KSN_NUM 3 /* The number of KeyStores */
#define SSS_T 2 /* SSS threshold (<= KSN_NUM) */
#define SSS_SIZE 39 /* 6 + 2*BLOCK_SIZE + 1 */
/* Paths and the name of the credentials, pk, asserts */
#define CR1 "cre/CR_Pub_CA" /* CR^(CA)_SUB */
#define CR2 "cre/CR_CA_Sub" /* CR(Pub)_(CA) */
#define SUBPK "cre/pkK_Sub" /* pkK_Sub */
#endif