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

Go to the source code of this file.

Functions

UNIT_TEST_STATUS EFIAPI TestVerifyParallelHash256HashAll (IN UNIT_TEST_CONTEXT Context)
 

Variables

GLOBAL_REMOVE_IF_UNREFERENCED CONST UINTN OutputByteLen = 64
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 InputSample1 []
 
GLOBAL_REMOVE_IF_UNREFERENCED UINTN InputSample1ByteLen = 24
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST VOID * CustomizationSample1 = ""
 
GLOBAL_REMOVE_IF_UNREFERENCED UINTN CustomSample1ByteLen = 0
 
GLOBAL_REMOVE_IF_UNREFERENCED UINTN BlockSizeSample1 = 8
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 ExpectOutputSample1 []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 * InputSample2 = InputSample1
 
GLOBAL_REMOVE_IF_UNREFERENCED UINTN InputSample2ByteLen = 24
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST VOID * CustomizationSample2 = "Parallel Data"
 
GLOBAL_REMOVE_IF_UNREFERENCED UINTN CustomSample2ByteLen = 13
 
GLOBAL_REMOVE_IF_UNREFERENCED UINTN BlockSizeSample2 = 8
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 ExpectOutputSample2 []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 InputSample3 []
 
GLOBAL_REMOVE_IF_UNREFERENCED UINTN InputSample3ByteLen = 72
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST VOID * CustomizationSample3 = "Parallel Data"
 
GLOBAL_REMOVE_IF_UNREFERENCED UINTN CustomSample3ByteLen = 13
 
GLOBAL_REMOVE_IF_UNREFERENCED UINTN BlockSizeSample3 = 12
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 ExpectOutputSample3 []
 
TEST_DESC mParallelhashTest []
 
UINTN mParallelhashTestNum = ARRAY_SIZE (mParallelhashTest)
 

Detailed Description

Application for Parallelhash Function Validation.

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

Definition in file ParallelhashTests.c.

Function Documentation

◆ TestVerifyParallelHash256HashAll()

UNIT_TEST_STATUS EFIAPI TestVerifyParallelHash256HashAll ( IN UNIT_TEST_CONTEXT  Context)

Definition at line 77 of file ParallelhashTests.c.

Variable Documentation

◆ BlockSizeSample1

GLOBAL_REMOVE_IF_UNREFERENCED UINTN BlockSizeSample1 = 8

Definition at line 27 of file ParallelhashTests.c.

◆ BlockSizeSample2

GLOBAL_REMOVE_IF_UNREFERENCED UINTN BlockSizeSample2 = 8

Definition at line 43 of file ParallelhashTests.c.

◆ BlockSizeSample3

GLOBAL_REMOVE_IF_UNREFERENCED UINTN BlockSizeSample3 = 12

Definition at line 66 of file ParallelhashTests.c.

◆ CustomizationSample1

GLOBAL_REMOVE_IF_UNREFERENCED CONST VOID* CustomizationSample1 = ""

Definition at line 25 of file ParallelhashTests.c.

◆ CustomizationSample2

GLOBAL_REMOVE_IF_UNREFERENCED CONST VOID* CustomizationSample2 = "Parallel Data"

Definition at line 41 of file ParallelhashTests.c.

◆ CustomizationSample3

GLOBAL_REMOVE_IF_UNREFERENCED CONST VOID* CustomizationSample3 = "Parallel Data"

Definition at line 64 of file ParallelhashTests.c.

◆ CustomSample1ByteLen

GLOBAL_REMOVE_IF_UNREFERENCED UINTN CustomSample1ByteLen = 0

Definition at line 26 of file ParallelhashTests.c.

◆ CustomSample2ByteLen

GLOBAL_REMOVE_IF_UNREFERENCED UINTN CustomSample2ByteLen = 13

Definition at line 42 of file ParallelhashTests.c.

◆ CustomSample3ByteLen

GLOBAL_REMOVE_IF_UNREFERENCED UINTN CustomSample3ByteLen = 13

Definition at line 65 of file ParallelhashTests.c.

◆ ExpectOutputSample1

GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 ExpectOutputSample1[]
Initial value:
= {
0xbc, 0x1e, 0xf1, 0x24, 0xda, 0x34, 0x49, 0x5e, 0x94, 0x8e, 0xad, 0x20, 0x7d, 0xd9, 0x84, 0x22,
0x35, 0xda, 0x43, 0x2d, 0x2b, 0xbc, 0x54, 0xb4, 0xc1, 0x10, 0xe6, 0x4c, 0x45, 0x11, 0x05, 0x53,
0x1b, 0x7f, 0x2a, 0x3e, 0x0c, 0xe0, 0x55, 0xc0, 0x28, 0x05, 0xe7, 0xc2, 0xde, 0x1f, 0xb7, 0x46,
0xaf, 0x97, 0xa1, 0xd0, 0x01, 0xf4, 0x3b, 0x82, 0x4e, 0x31, 0xb8, 0x76, 0x12, 0x41, 0x04, 0x29
}

Definition at line 28 of file ParallelhashTests.c.

◆ ExpectOutputSample2

GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 ExpectOutputSample2[]
Initial value:
= {
0xcd, 0xf1, 0x52, 0x89, 0xb5, 0x4f, 0x62, 0x12, 0xb4, 0xbc, 0x27, 0x05, 0x28, 0xb4, 0x95, 0x26,
0x00, 0x6d, 0xd9, 0xb5, 0x4e, 0x2b, 0x6a, 0xdd, 0x1e, 0xf6, 0x90, 0x0d, 0xda, 0x39, 0x63, 0xbb,
0x33, 0xa7, 0x24, 0x91, 0xf2, 0x36, 0x96, 0x9c, 0xa8, 0xaf, 0xae, 0xa2, 0x9c, 0x68, 0x2d, 0x47,
0xa3, 0x93, 0xc0, 0x65, 0xb3, 0x8e, 0x29, 0xfa, 0xe6, 0x51, 0xa2, 0x09, 0x1c, 0x83, 0x31, 0x10
}

Definition at line 44 of file ParallelhashTests.c.

◆ ExpectOutputSample3

GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 ExpectOutputSample3[]
Initial value:
= {
0x69, 0xd0, 0xfc, 0xb7, 0x64, 0xea, 0x05, 0x5d, 0xd0, 0x93, 0x34, 0xbc, 0x60, 0x21, 0xcb, 0x7e,
0x4b, 0x61, 0x34, 0x8d, 0xff, 0x37, 0x5d, 0xa2, 0x62, 0x67, 0x1c, 0xde, 0xc3, 0xef, 0xfa, 0x8d,
0x1b, 0x45, 0x68, 0xa6, 0xcc, 0xe1, 0x6b, 0x1c, 0xad, 0x94, 0x6d, 0xdd, 0xe2, 0x7f, 0x6c, 0xe2,
0xb8, 0xde, 0xe4, 0xcd, 0x1b, 0x24, 0x85, 0x1e, 0xbf, 0x00, 0xeb, 0x90, 0xd4, 0x38, 0x13, 0xe9
}

Definition at line 67 of file ParallelhashTests.c.

◆ InputSample1

GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 InputSample1[]
Initial value:
= {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27
}

Definition at line 19 of file ParallelhashTests.c.

◆ InputSample1ByteLen

GLOBAL_REMOVE_IF_UNREFERENCED UINTN InputSample1ByteLen = 24

Definition at line 24 of file ParallelhashTests.c.

◆ InputSample2

GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8* InputSample2 = InputSample1

Definition at line 39 of file ParallelhashTests.c.

◆ InputSample2ByteLen

GLOBAL_REMOVE_IF_UNREFERENCED UINTN InputSample2ByteLen = 24

Definition at line 40 of file ParallelhashTests.c.

◆ InputSample3

GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 InputSample3[]
Initial value:
= {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x10, 0x11, 0x12, 0x13,
0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
0x28, 0x29, 0x2a, 0x2b, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b,
0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x50, 0x51, 0x52, 0x53,
0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x5b
}

Definition at line 55 of file ParallelhashTests.c.

◆ InputSample3ByteLen

GLOBAL_REMOVE_IF_UNREFERENCED UINTN InputSample3ByteLen = 72

Definition at line 63 of file ParallelhashTests.c.

◆ mParallelhashTest

TEST_DESC mParallelhashTest[]
Initial value:
= {
{ "TestVerifyParallelHash256HashAll()", "CryptoPkg.BaseCryptLib.ParallelHash256HashAll", TestVerifyParallelHash256HashAll, NULL, NULL, NULL },
}
#define NULL
Definition: Base.h:319

Definition at line 138 of file ParallelhashTests.c.

◆ mParallelhashTestNum

UINTN mParallelhashTestNum = ARRAY_SIZE (mParallelhashTest)

Definition at line 145 of file ParallelhashTests.c.

◆ OutputByteLen

Definition at line 14 of file ParallelhashTests.c.