summaryrefslogtreecommitdiff
path: root/cesar/cp2/secu/defs.h
blob: 2f1fe7ec7ed421824a09cdfa404a8998df190665 (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
32
33
34
35
36
37
38
#ifndef cp2_secu_defs_h
#define cp2_secu_defs_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    cp2/secu/defs.h
 * \brief   Length definitions for the security module.
 * \ingroup cp2_secu
 *
 */

/** MAX PASSWORD SIZE. */
#define CP_SECU_PWD_SIZE_MAX 64

/** Salt size. */
#define CP_SECU_SALT_SIZE 8

/** SHA 256 output size. */
#define CP_SECU_SHA256_OUTPUT_SIZE 32

/** pbkdf1 generated key size */
#define CP_SECU_OUTPUT_KEY_SIZE 16

/** PBKDF1 iteration. */
#define CP_SECU_PBKDF1_ITERATION 1000

/** PBKDF1 iteration for NID. */
#define CP_SECU_PBKDF1_ITERATION_NID 5

/** AES Size. */
#define CP_SECU_AES_SIZE 16

#endif /* cp2_secu_defs_h */