aboutsummaryrefslogtreecommitdiffstats
path: root/UefiLessonsPkg/PasswordFormWithHash/Data.h
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2024-02-20 11:11:39 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2024-02-20 11:11:39 +0300
commitb36e1e403b916d3263959f5c84ca5061f683e804 (patch)
tree23b36a35ca7c6458813182d34a44305420382a96 /UefiLessonsPkg/PasswordFormWithHash/Data.h
parent146e7a2a46306530bd845b1c0dacf455ae2d6bd4 (diff)
downloadUEFI-Lessons-b36e1e403b916d3263959f5c84ca5061f683e804.tar.gz
UEFI-Lessons-b36e1e403b916d3263959f5c84ca5061f683e804.tar.bz2
UEFI-Lessons-b36e1e403b916d3263959f5c84ca5061f683e804.zip
Add PasswordFormWithHash source code
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
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