TianoCore EDK2 master
Loading...
Searching...
No Matches
AuthenticodeTests.c File Reference
#include "TestBaseCryptLib.h"

Go to the source code of this file.

Functions

UNIT_TEST_STATUS EFIAPI TestVerifyAuthenticodeVerify (IN UNIT_TEST_CONTEXT Context)
 

Variables

GLOBAL_REMOVE_IF_UNREFERENCED UINT8 PeSha1Hash []
 
GLOBAL_REMOVE_IF_UNREFERENCED UINT8 PeSha256Hash []
 
GLOBAL_REMOVE_IF_UNREFERENCED UINT8 AuthenticodeWithSha1 []
 
GLOBAL_REMOVE_IF_UNREFERENCED UINT8 AuthenticodeWithSha256 []
 
GLOBAL_REMOVE_IF_UNREFERENCED UINT8 TestRootCert1 []
 
GLOBAL_REMOVE_IF_UNREFERENCED UINT8 TestRootCert2 []
 
GLOBAL_REMOVE_IF_UNREFERENCED UINT8 HashOidValue []
 
TEST_DESC mAuthenticodeTest []
 
UINTN mAuthenticodeTestNum = ARRAY_SIZE (mAuthenticodeTest)
 

Detailed Description

Sample Implementation for Microsoft Authenticode Verification.

Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file AuthenticodeTests.c.

Function Documentation

◆ TestVerifyAuthenticodeVerify()

UNIT_TEST_STATUS EFIAPI TestVerifyAuthenticodeVerify ( IN UNIT_TEST_CONTEXT  Context)

Definition at line 947 of file AuthenticodeTests.c.

Variable Documentation

◆ AuthenticodeWithSha1

GLOBAL_REMOVE_IF_UNREFERENCED UINT8 AuthenticodeWithSha1[]

Definition at line 33 of file AuthenticodeTests.c.

◆ AuthenticodeWithSha256

GLOBAL_REMOVE_IF_UNREFERENCED UINT8 AuthenticodeWithSha256[]

Definition at line 494 of file AuthenticodeTests.c.

◆ HashOidValue

GLOBAL_REMOVE_IF_UNREFERENCED UINT8 HashOidValue[]
Initial value:
= {
0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05,
0x2B, 0x0E, 0x03, 0x02, 0x1A,
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x04,
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01,
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x02,
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x03,
}

Definition at line 936 of file AuthenticodeTests.c.

◆ mAuthenticodeTest

TEST_DESC mAuthenticodeTest[]
Initial value:
= {
{ "TestVerifyAuthenticodeVerify()", "CryptoPkg.BaseCryptLib.Authenticode", TestVerifyAuthenticodeVerify, NULL, NULL, NULL },
}
#define NULL
Definition: Base.h:319

Definition at line 995 of file AuthenticodeTests.c.

◆ mAuthenticodeTestNum

UINTN mAuthenticodeTestNum = ARRAY_SIZE (mAuthenticodeTest)

Definition at line 1002 of file AuthenticodeTests.c.

◆ PeSha1Hash

GLOBAL_REMOVE_IF_UNREFERENCED UINT8 PeSha1Hash[]
Initial value:
= {
0x44, 0xFD, 0x4F, 0xA9, 0x17, 0xEE, 0xAC, 0xCF, 0x1F, 0x0B, 0xE3, 0xA1, 0x4D, 0x5B, 0xA6, 0x61,
0x82, 0x97, 0xC4, 0xB6
}

Definition at line 15 of file AuthenticodeTests.c.

◆ PeSha256Hash

GLOBAL_REMOVE_IF_UNREFERENCED UINT8 PeSha256Hash[]
Initial value:
= {
0x61, 0x82, 0xB7, 0xF8, 0x8C, 0xFF, 0xC2, 0xEB, 0x79, 0x6E, 0x9D, 0xA9, 0xDD, 0x39, 0x52, 0xDD,
0x36, 0xDD, 0xF1, 0x43, 0x27, 0x58, 0x8C, 0xA7, 0xCC, 0xAE, 0xDE, 0xDD, 0x3C, 0x02, 0x12, 0x49
}

Definition at line 23 of file AuthenticodeTests.c.

◆ TestRootCert1

GLOBAL_REMOVE_IF_UNREFERENCED UINT8 TestRootCert1[]

Definition at line 740 of file AuthenticodeTests.c.

◆ TestRootCert2

GLOBAL_REMOVE_IF_UNREFERENCED UINT8 TestRootCert2[]

Definition at line 833 of file AuthenticodeTests.c.