TianoCore EDK2 master
Loading...
Searching...
No Matches
TestBaseCryptLib.h File Reference
#include <PiPei.h>
#include <Uefi.h>
#include <Library/UefiLib.h>
#include <Library/DebugLib.h>
#include <Library/UnitTestLib.h>
#include <Library/PrintLib.h>
#include <Library/BaseCryptLib.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>

Go to the source code of this file.

Data Structures

struct  TEST_DESC
 
struct  SUITE_DESC
 

Macros

#define UNIT_TEST_NAME   "BaseCryptLib Unit Test"
 
#define UNIT_TEST_VERSION   "1.0"
 

Functions

EFI_STATUS EFIAPI CreateUnitTest (IN CHAR8 *UnitTestName, IN CHAR8 *UnitTestVersion, IN OUT UNIT_TEST_FRAMEWORK_HANDLE *Framework)
 
EFI_STATUS ValidateCryptDh (VOID)
 
EFI_STATUS ValidateCryptPrng (VOID)
 

Variables

UINTN mPkcs7EkuTestNum
 
TEST_DESC mPkcs7EkuTest []
 
UINTN mHashTestNum
 
TEST_DESC mHashTest []
 
UINTN mHmacTestNum
 
TEST_DESC mHmacTest []
 
UINTN mBlockCipherTestNum
 
TEST_DESC mBlockCipherTest []
 
UINTN mRsaTestNum
 
TEST_DESC mRsaTest []
 
UINTN mRsaCertTestNum
 
TEST_DESC mRsaCertTest []
 
UINTN mPkcs7TestNum
 
TEST_DESC mPkcs7Test []
 
UINTN mPkcs5TestNum
 
TEST_DESC mPkcs5Test []
 
UINTN mAuthenticodeTestNum
 
TEST_DESC mAuthenticodeTest []
 
UINTN mImageTimestampTestNum
 
TEST_DESC mImageTimestampTest []
 
UINTN mDhTestNum
 
TEST_DESC mDhTest []
 
UINTN mPrngTestNum
 
TEST_DESC mPrngTest []
 
UINTN mOaepTestNum
 
TEST_DESC mOaepTest []
 
UINTN mRsaPssTestNum
 
TEST_DESC mRsaPssTest []
 
UINTN mHkdfTestNum
 
TEST_DESC mHkdfTest []
 
UINTN mAeadAesGcmTestNum
 
TEST_DESC mAeadAesGcmTest []
 
UINTN mBnTestNum
 
TEST_DESC mBnTest []
 
UINTN mEcTestNum
 
TEST_DESC mEcTest []
 
UINTN mX509TestNum
 
TEST_DESC mX509Test []
 

Detailed Description

Application for Cryptographic Primitives Validation.

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

Definition in file TestBaseCryptLib.h.

Macro Definition Documentation

◆ UNIT_TEST_NAME

#define UNIT_TEST_NAME   "BaseCryptLib Unit Test"

Definition at line 26 of file TestBaseCryptLib.h.

◆ UNIT_TEST_VERSION

#define UNIT_TEST_VERSION   "1.0"

Definition at line 27 of file TestBaseCryptLib.h.

Function Documentation

◆ CreateUnitTest()

EFI_STATUS EFIAPI CreateUnitTest ( IN CHAR8 *  UnitTestName,
IN CHAR8 *  UnitTestVersion,
IN OUT UNIT_TEST_FRAMEWORK_HANDLE *  Framework 
)

Creates a framework you can use

Definition at line 37 of file BaseCryptLibUnitTests.c.

◆ ValidateCryptDh()

EFI_STATUS ValidateCryptDh ( VOID  )

Validate UEFI-OpenSSL DH Interfaces.

Return values
EFI_SUCCESSValidation succeeded.
EFI_ABORTEDValidation failed.

◆ ValidateCryptPrng()

EFI_STATUS ValidateCryptPrng ( VOID  )

Validate UEFI-OpenSSL pseudorandom number generator interfaces.

Return values
EFI_SUCCESSValidation succeeded.
EFI_ABORTEDValidation failed.

Variable Documentation

◆ mAeadAesGcmTest

TEST_DESC mAeadAesGcmTest[]
extern

Definition at line 105 of file AeadAesGcmTests.c.

◆ mAeadAesGcmTestNum

UINTN mAeadAesGcmTestNum
extern

Definition at line 112 of file AeadAesGcmTests.c.

◆ mAuthenticodeTest

TEST_DESC mAuthenticodeTest[]
extern

Definition at line 995 of file AuthenticodeTests.c.

◆ mAuthenticodeTestNum

UINTN mAuthenticodeTestNum
extern

Definition at line 1002 of file AuthenticodeTests.c.

◆ mBlockCipherTest

TEST_DESC mBlockCipherTest[]
extern

Definition at line 276 of file BlockCipherTests.c.

◆ mBlockCipherTestNum

UINTN mBlockCipherTestNum
extern

Definition at line 290 of file BlockCipherTests.c.

◆ mBnTest

TEST_DESC mBnTest[]
extern

Definition at line 259 of file BnTests.c.

◆ mBnTestNum

UINTN mBnTestNum
extern

Definition at line 266 of file BnTests.c.

◆ mDhTest

TEST_DESC mDhTest[]
extern

Definition at line 100 of file DhTests.c.

◆ mDhTestNum

UINTN mDhTestNum
extern

Definition at line 107 of file DhTests.c.

◆ mEcTest

TEST_DESC mEcTest[]
extern

Definition at line 437 of file EcTests.c.

◆ mEcTestNum

UINTN mEcTestNum
extern

Definition at line 446 of file EcTests.c.

◆ mHashTest

TEST_DESC mHashTest[]
extern

Definition at line 222 of file HashTests.c.

◆ mHashTestNum

UINTN mHashTestNum
extern

Definition at line 236 of file HashTests.c.

◆ mHkdfTest

TEST_DESC mHkdfTest[]
extern

Definition at line 194 of file HkdfTests.c.

◆ mHkdfTestNum

UINTN mHkdfTestNum
extern

Definition at line 202 of file HkdfTests.c.

◆ mHmacTest

TEST_DESC mHmacTest[]
extern

Definition at line 234 of file HmacTests.c.

◆ mHmacTestNum

UINTN mHmacTestNum
extern

Definition at line 242 of file HmacTests.c.

◆ mImageTimestampTest

TEST_DESC mImageTimestampTest[]
extern

Definition at line 328 of file TSTests.c.

◆ mImageTimestampTestNum

UINTN mImageTimestampTestNum
extern

Definition at line 335 of file TSTests.c.

◆ mOaepTest

TEST_DESC mOaepTest[]
extern

Definition at line 884 of file OaepEncryptTests.c.

◆ mOaepTestNum

UINTN mOaepTestNum
extern

Definition at line 922 of file OaepEncryptTests.c.

◆ mPkcs5Test

TEST_DESC mPkcs5Test[]
extern

Definition at line 65 of file Pkcs5Pbkdf2Tests.c.

◆ mPkcs5TestNum

UINTN mPkcs5TestNum
extern

Definition at line 72 of file Pkcs5Pbkdf2Tests.c.

◆ mPkcs7EkuTest

TEST_DESC mPkcs7EkuTest[]
extern

Definition at line 526 of file Pkcs7EkuTests.c.

◆ mPkcs7EkuTestNum

UINTN mPkcs7EkuTestNum
extern

Definition at line 543 of file Pkcs7EkuTests.c.

◆ mPkcs7Test

TEST_DESC mPkcs7Test[]
extern

Definition at line 407 of file RsaPkcs7Tests.c.

◆ mPkcs7TestNum

UINTN mPkcs7TestNum
extern

Definition at line 414 of file RsaPkcs7Tests.c.

◆ mPrngTest

TEST_DESC mPrngTest[]
extern

Definition at line 44 of file RandTests.c.

◆ mPrngTestNum

UINTN mPrngTestNum
extern

Definition at line 51 of file RandTests.c.

◆ mRsaCertTest

TEST_DESC mRsaCertTest[]
extern

Definition at line 398 of file RsaPkcs7Tests.c.

◆ mRsaCertTestNum

UINTN mRsaCertTestNum
extern

Definition at line 405 of file RsaPkcs7Tests.c.

◆ mRsaPssTest

TEST_DESC mRsaPssTest[]
extern

Definition at line 181 of file RsaPssTests.c.

◆ mRsaPssTestNum

UINTN mRsaPssTestNum
extern

Definition at line 188 of file RsaPssTests.c.

◆ mRsaTest

TEST_DESC mRsaTest[]
extern

Definition at line 313 of file RsaTests.c.

◆ mRsaTestNum

UINTN mRsaTestNum
extern

Definition at line 322 of file RsaTests.c.

◆ mX509Test

TEST_DESC mX509Test[]
extern

Definition at line 624 of file X509Tests.c.

◆ mX509TestNum

UINTN mX509TestNum
extern

Definition at line 631 of file X509Tests.c.