summaryrefslogtreecommitdiff
path: root/cesar/cp2/secu/pbkdf1.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp2/secu/pbkdf1.h')
-rw-r--r--cesar/cp2/secu/pbkdf1.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/cesar/cp2/secu/pbkdf1.h b/cesar/cp2/secu/pbkdf1.h
new file mode 100644
index 0000000000..f1d6c1fca0
--- /dev/null
+++ b/cesar/cp2/secu/pbkdf1.h
@@ -0,0 +1,32 @@
+#ifndef CP2_SECU_PBKDF1_H_
+#define CP2_SECU_PBKDF1_H_
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file cp2/secu/pbkdf1.h
+ * \brief Fonction PBKDF1.
+ * \ingroup cp_secu
+ */
+
+enum cp_secu_salt_kind_t
+{
+ CP_SECU_SALT_KEY_DAK,
+ CP_SECU_SALT_KEY_NMK_HS,
+ CP_SECU_SALT_KEY_NB
+};
+typedef enum cp_secu_salt_kind_t cp_secu_salt_kind_t;
+
+/**
+ * PBKDF1 functions for the Secu module.
+ * \param buffer the input buffer.
+ * \param key key kind.
+ */
+void
+cp_secu_pbkdf1 (u8 *buffer, cp_secu_salt_kind_t key);
+
+#endif /* CP2_SECU_PBKDF1_H_ */