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

Go to the source code of this file.

Functions

UNIT_TEST_STATUS EFIAPI TestVerifyRsaCertPkcs1SignVerify (IN UNIT_TEST_CONTEXT Context)
 
UNIT_TEST_STATUS EFIAPI TestVerifyPkcs7SignVerify (IN UNIT_TEST_CONTEXT Context)
 

Variables

GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 TestKeyPem []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 * PemPass = "client"
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 TestCACert []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 TestCert []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 MsgHash []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 * Payload = "Payload Data for PKCS#7 Signing"
 
TEST_DESC mRsaCertTest []
 
UINTN mRsaCertTestNum = ARRAY_SIZE (mRsaCertTest)
 
TEST_DESC mPkcs7Test []
 
UINTN mPkcs7TestNum = ARRAY_SIZE (mPkcs7Test)
 

Detailed Description

Application for RSA Key Retrieving (from PEM and X509) & Signature Validation.

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

Definition in file RsaPkcs7Tests.c.

Function Documentation

◆ TestVerifyPkcs7SignVerify()

UNIT_TEST_STATUS EFIAPI TestVerifyPkcs7SignVerify ( IN UNIT_TEST_CONTEXT  Context)

Definition at line 340 of file RsaPkcs7Tests.c.

◆ TestVerifyRsaCertPkcs1SignVerify()

UNIT_TEST_STATUS EFIAPI TestVerifyRsaCertPkcs1SignVerify ( IN UNIT_TEST_CONTEXT  Context)

Definition at line 245 of file RsaPkcs7Tests.c.

Variable Documentation

◆ mPkcs7Test

TEST_DESC mPkcs7Test[]
Initial value:
= {
{ "TestVerifyPkcs7SignVerify()", "CryptoPkg.BaseCryptLib.Pkcs7", TestVerifyPkcs7SignVerify, NULL, NULL, NULL },
}
#define NULL
Definition: Base.h:319

Definition at line 407 of file RsaPkcs7Tests.c.

◆ mPkcs7TestNum

UINTN mPkcs7TestNum = ARRAY_SIZE (mPkcs7Test)

Definition at line 414 of file RsaPkcs7Tests.c.

◆ mRsaCertTest

TEST_DESC mRsaCertTest[]
Initial value:
= {
{ "TestVerifyRsaCertPkcs1SignVerify()", "CryptoPkg.BaseCryptLib.RsaCert", TestVerifyRsaCertPkcs1SignVerify, NULL, NULL, NULL },
}

Definition at line 398 of file RsaPkcs7Tests.c.

◆ mRsaCertTestNum

UINTN mRsaCertTestNum = ARRAY_SIZE (mRsaCertTest)

Definition at line 405 of file RsaPkcs7Tests.c.

◆ MsgHash

Initial value:
= {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09
}

Definition at line 233 of file RsaPkcs7Tests.c.

◆ Payload

GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8* Payload = "Payload Data for PKCS#7 Signing"

Definition at line 241 of file RsaPkcs7Tests.c.

◆ PemPass

GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8* PemPass = "client"

Definition at line 106 of file RsaPkcs7Tests.c.

◆ TestCACert

Definition at line 114 of file RsaPkcs7Tests.c.

◆ TestCert

Definition at line 179 of file RsaPkcs7Tests.c.

◆ TestKeyPem

Definition at line 19 of file RsaPkcs7Tests.c.