**/\r
\r
#include "CryptParallelHash.h"\r
-#include <Library/MmServicesTableLib.h>\r
#include <Library/SynchronizationLib.h>\r
\r
#define PARALLELHASH_CUSTOMIZATION "ParallelHash"\r
}\r
}\r
\r
-/**\r
- Dispatch the block task to each AP in SMM mode.\r
-\r
-**/\r
-VOID\r
-EFIAPI\r
-MmDispatchBlockToAP (\r
- VOID\r
- )\r
-{\r
- UINTN Index;\r
-\r
- for (Index = 0; Index < gMmst->NumberOfCpus; Index++) {\r
- if (Index != gMmst->CurrentlyExecutingCpu) {\r
- gMmst->MmStartupThisAp (ParallelHashApExecute, Index, NULL);\r
- }\r
- }\r
-\r
- return;\r
-}\r
-\r
/**\r
Parallel hash function ParallelHash256, as defined in NIST's Special Publication 800-185,\r
published December 2016.\r
//\r
// Dispatch blocklist to each AP.\r
//\r
- if (gMmst != NULL) {\r
- MmDispatchBlockToAP ();\r
- }\r
+ DispatchBlockToAp ();\r
\r
//\r
// Wait until all block hash completed.\r