aboutsummaryrefslogtreecommitdiffstats
path: root/UefiLessonsPkg/PasswordFormWithHash/Data.h
diff options
context:
space:
mode:
Diffstat (limited to 'UefiLessonsPkg/PasswordFormWithHash/Data.h')
-rw-r--r--UefiLessonsPkg/PasswordFormWithHash/Data.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/UefiLessonsPkg/PasswordFormWithHash/Data.h b/UefiLessonsPkg/PasswordFormWithHash/Data.h
new file mode 100644
index 0000000..a83476d
--- /dev/null
+++ b/UefiLessonsPkg/PasswordFormWithHash/Data.h
@@ -0,0 +1,20 @@
+#ifndef _DATA_H_
+#define _DATA_H_
+
+#define FORMSET_GUID {0xe54b953d, 0x7ddc, 0x455c, {0x8c, 0x1a, 0x59, 0x92, 0xbb, 0xc7, 0x72, 0xc4}}
+#define DATAPATH_GUID {0xb289cf9f, 0xf911, 0x41fd, {0x9b, 0xad, 0x2c, 0x92, 0x57, 0x68, 0x86, 0x64}}
+#define STORAGE_GUID {0xe7f2d73c, 0x699a, 0x4606, {0x92, 0xb6, 0xa3, 0x5e, 0x49, 0x27, 0xc4, 0xd4}}
+
+#define PASSWORD_MIN_LEN 6
+#define PASSWORD_MAX_LEN 8
+#define HASHED_PASSWORD_SIZE 64
+
+#define KEY_PASSWORD 0x1234
+
+#pragma pack(1)
+typedef struct {
+ UINT8 Password[HASHED_PASSWORD_SIZE];
+} VARIABLE_STRUCTURE;
+#pragma pack()
+
+#endif