summaryrefslogtreecommitdiff
path: root/cesar/cp2/defs.h
blob: 48ed1193fa2cb616b34546bda46df43ac9bf53be (plain)
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
#ifndef cp2_defs_h
#define cp2_defs_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    cp2/defs.h
 * \brief   Definition for the Contol Plane. 
 * \ingroup cp2
 *
 */

/** min size of NPW password. */
#define MIN_NPW_SIZE 8  // bytes
#define MAX_NPW_SIZE 64 // bytes
 
/** max size of hfid (human-friendly identifier). */
#define HFID_SIZE 64 // bytes

/** NMK size. */
#define NMK_SIZE 16 // 16 bytes 

/** Devince password length. */
#define MIN_DPW_SIZE 16 // bytes
#define MAX_DPW_SIZE 64 // bytes

#endif /* cp2_defs_h */