#define INCLUDE_ALLOW_MODULE
#define INCLUDE_ALLOW_USERLEVEL
-#define INCLUDE_ALLOW_VMKERNEL
#define INCLUDE_ALLOW_VMCORE
#include "includeCheck.h"
#else
-#ifndef VMKERNEL
-
/*
* Prevent linkage conflicts with the SHA1 APIs brought in from
* OpenSSL. (Pro tip: If you're doing anything security-related, you
#define SHA1Update VMW_SHA1Update
#define SHA1Final VMW_SHA1Final
-#endif /* !VMKERNEL */
-
/*
SHA-1 in C
By Steve Reid <steve@edmweb.com>
unsigned char buffer[64];
} SHA1_CTX;
-#if defined VMKBOOT || defined VMKERNEL
-/* New SHA1 uses are not allowed. Old uses are going away. SHA1 isn't secure. */
-void SHA1Init_Legacy(SHA1_CTX* context);
-void SHA1Update_Legacy(SHA1_CTX* context,
- const unsigned char *data,
- size_t len);
-void SHA1Final_Legacy(unsigned char digest[SHA1_HASH_LEN], SHA1_CTX* context);
-#else
void SHA1Init(SHA1_CTX* context);
void SHA1Update(SHA1_CTX* context,
const unsigned char *data,
size_t len);
void SHA1Final(unsigned char digest[SHA1_HASH_LEN], SHA1_CTX* context);
-#endif
#endif // defined __APPLE__ && defined USERLEVEL
-#if !defined VMKBOOT && !defined VMKERNEL
-
/* Opaque handle */
typedef union {
#if defined __APPLE__
unsigned char digest[SHA1_HASH_LEN]);
void CryptoHash_ComputeSHA1(const void *data, size_t len,
unsigned char digest[SHA1_HASH_LEN]);
-#endif
#if defined(__cplusplus)
} // extern "C"