summaryrefslogtreecommitdiff
path: root/include/PasswordCrypt.h
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2021-03-23 23:49:46 +0000
committerSteve McIntyre <steve@einval.com>2021-03-23 23:49:46 +0000
commit031e5cce385d3f96b1caa1d53495332a7eb03749 (patch)
treeb4988dfbd191b2242b9294e24075b39a608b1155 /include/PasswordCrypt.h
parent7bf7a6d0852382bb645119b18df3ff461aaba247 (diff)
downloadefi-boot-shim-031e5cce385d3f96b1caa1d53495332a7eb03749.tar.gz
efi-boot-shim-031e5cce385d3f96b1caa1d53495332a7eb03749.zip
New upstream version 15.3upstream/15.3
Diffstat (limited to 'include/PasswordCrypt.h')
-rw-r--r--include/PasswordCrypt.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/include/PasswordCrypt.h b/include/PasswordCrypt.h
deleted file mode 100644
index cadad727..00000000
--- a/include/PasswordCrypt.h
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef SHIM_PASSWORDCRYPT_H
-#define SHIM_PASSWORDCRYPT_H
-
-enum HashMethod {
- TRADITIONAL_DES = 0,
- EXTEND_BSDI_DES,
- MD5_BASED,
- SHA256_BASED,
- SHA512_BASED,
- BLOWFISH_BASED
-};
-
-typedef struct {
- UINT16 method;
- UINT64 iter_count;
- UINT16 salt_size;
- UINT8 salt[32];
- UINT8 hash[128];
-} __attribute__ ((packed)) PASSWORD_CRYPT;
-
-#define PASSWORD_CRYPT_SIZE sizeof(PASSWORD_CRYPT)
-
-EFI_STATUS password_crypt (const char *password, UINT32 pw_length,
- const PASSWORD_CRYPT *pw_hash, UINT8 *hash);
-UINT16 get_hash_size (const UINT16 method);
-
-#endif /* SHIM_PASSWORDCRYPT_H */