Make parameters of bloom filter be compiler-time constants

This commit is contained in:
Max Lv
2017-02-20 16:08:17 +08:00
parent b655fb2b8f
commit 98a4ff0639
2 changed files with 18 additions and 2 deletions
+16
View File
@@ -66,6 +66,22 @@ typedef mbedtls_md_info_t digest_type_t;
#define SUBKEY_INFO "ss-subkey"
#define IV_INFO "ss-iv"
#ifndef NUM_NONCE_ENTRIES_FOR_CLIENT
#define NUM_NONCE_ENTRIES_FOR_SERVER 1e6
#endif
#ifndef NUM_NONCE_ENTRIES_FOR_CLIENT
#define NUM_NONCE_ENTRIES_FOR_CLIENT 1e4
#endif
#ifndef ERROR_RATE_FOR_SERVER
#define ERROR_RATE_FOR_SERVER 1e-6
#endif
#ifndef ERROR_RATE_FOR_CLIENT
#define ERROR_RATE_FOR_CLIENT 1e-15
#endif
typedef struct buffer {
size_t idx;
size_t len;