TianoCore EDK2 master
|
#include "TestBaseCryptLib.h"
Go to the source code of this file.
Data Structures | |
struct | BN_TEST_CONTEXT |
Macros | |
#define | MAX_TEST_DATA_SIZE 512 |
#define | BYTES_OF_OPERATION_A 60 |
#define | BITS_OF_OPERATION_A 480 |
Functions | |
STATIC BOOLEAN | EqualBn2Bn (CONST VOID *Expected, CONST VOID *Actual) |
STATIC BOOLEAN | EqualBn2Bin (CONST VOID *Bn, CONST UINT8 *Buffer, CONST UINTN BufferSize) |
UNIT_TEST_STATUS EFIAPI | TestVerifyBnPreReq (UNIT_TEST_CONTEXT Context) |
VOID EFIAPI | TestVerifyBnCleanUp (UNIT_TEST_CONTEXT Context) |
UNIT_TEST_STATUS EFIAPI | TestVerifyBn (IN UNIT_TEST_CONTEXT Context) |
Application for BigNumber Primitives Validation.
Copyright (c) 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file BnTests.c.
UNIT_TEST_STATUS EFIAPI TestVerifyBn | ( | IN UNIT_TEST_CONTEXT | Context | ) |
VOID EFIAPI TestVerifyBnCleanUp | ( | UNIT_TEST_CONTEXT | Context | ) |
UNIT_TEST_STATUS EFIAPI TestVerifyBnPreReq | ( | UNIT_TEST_CONTEXT | Context | ) |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnOperationA[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnOperationB[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnOperationC[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnOperationExp[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnOperationMod[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnResultDiv[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnResultExpMod[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnResultInverseMod[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnResultMod[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnResultMulMod[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnResultRShift[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnResultSum[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnResultSumMod[] |
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 BnResultUIntSet[] = { 0x12, 0x34, 0x56, 0x78 } |
GLOBAL_REMOVE_IF_UNREFERENCED STATIC BN_TEST_CONTEXT mBnContext = { NULL, NULL, NULL, NULL, NULL } |
TEST_DESC mBnTest[] |
UINTN mBnTestNum = ARRAY_SIZE (mBnTest) |