\r
**/\r
\r
-#include <Library/BaseLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
-\r
-#include <Library/BaseCryptLib.h>\r
+#include "Cryptest.h"\r
\r
//\r
// DER encoding of SpcIndirectDataContent (Authenticode-specific Structure)\r
\r
return Status;\r
}\r
+\r
+/**\r
+ Validate UEFI-OpenSSL PKCS#7 Verification Interfaces.\r
+\r
+ @retval EFI_SUCCESS Validation succeeded.\r
+ @retval EFI_ABORTED Validation failed.\r
+\r
+**/\r
+EFI_STATUS\r
+ValidateAuthenticode (\r
+ VOID\r
+ )\r
+{\r
+ Print (L"\nUEFI-OpenSSL PKCS#7-Signed-Data Testing: ");\r
+\r
+ Print (L"\n- Authenticode (PKCS#7 Signed Data) Verification ... ");\r
+\r
+ if (AuthenticodeVerify ()) {\r
+ Print (L"[Pass]");\r
+ } else {\r
+ Print (L"[Fail]");\r
+ } \r
+\r
+ Print (L"\n");\r
+\r
+ return EFI_SUCCESS;\r
+}\r