diff options
author | qlong <qlong@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-02 06:06:38 +0000 |
---|---|---|
committer | qlong <qlong@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-02 06:06:38 +0000 |
commit | a8c4464502aabcbda7032daddc772a1bc7386bdf (patch) | |
tree | 4a09911c0309994c3657dece9ece986865eaaf0d /CryptoPkg/Application/Cryptest/AuthenticodeVerify.c | |
parent | 85c0b5ee7f333a0d334236644d3793314b5637b9 (diff) | |
download | edk2-platforms-a8c4464502aabcbda7032daddc772a1bc7386bdf.tar.xz |
Update CryptoPkg for new ciphers (HMAC, Block Cipher, etc) supports.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10997 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'CryptoPkg/Application/Cryptest/AuthenticodeVerify.c')
-rw-r--r-- | CryptoPkg/Application/Cryptest/AuthenticodeVerify.c | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/CryptoPkg/Application/Cryptest/AuthenticodeVerify.c b/CryptoPkg/Application/Cryptest/AuthenticodeVerify.c index 72c4092f82..7a4e29447e 100644 --- a/CryptoPkg/Application/Cryptest/AuthenticodeVerify.c +++ b/CryptoPkg/Application/Cryptest/AuthenticodeVerify.c @@ -12,11 +12,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/
-#include <Library/BaseLib.h>
-#include <Library/BaseMemoryLib.h>
-#include <Library/MemoryAllocationLib.h>
-
-#include <Library/BaseCryptLib.h>
+#include "Cryptest.h"
//
// DER encoding of SpcIndirectDataContent (Authenticode-specific Structure)
@@ -656,3 +652,30 @@ AuthenticodeVerify ( return Status;
}
+
+/**
+ Validate UEFI-OpenSSL PKCS#7 Verification Interfaces.
+
+ @retval EFI_SUCCESS Validation succeeded.
+ @retval EFI_ABORTED Validation failed.
+
+**/
+EFI_STATUS
+ValidateAuthenticode (
+ VOID
+ )
+{
+ Print (L"\nUEFI-OpenSSL PKCS#7-Signed-Data Testing: ");
+
+ Print (L"\n- Authenticode (PKCS#7 Signed Data) Verification ... ");
+
+ if (AuthenticodeVerify ()) {
+ Print (L"[Pass]");
+ } else {
+ Print (L"[Fail]");
+ }
+
+ Print (L"\n");
+
+ return EFI_SUCCESS;
+}
|