summaryrefslogtreecommitdiff
path: root/cesar/cp2/secu/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp2/secu/defs.h')
-rw-r--r--cesar/cp2/secu/defs.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/cesar/cp2/secu/defs.h b/cesar/cp2/secu/defs.h
new file mode 100644
index 0000000000..7a39ee7900
--- /dev/null
+++ b/cesar/cp2/secu/defs.h
@@ -0,0 +1,32 @@
+#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 itreration. */
+#define CP_SECU_PBKDF1_ITERATION 1000
+
+#endif /* cp2_secu_defs_h */