TianoCore EDK2 master
|
Go to the source code of this file.
Macros | |
#define | PARALLELHASH_CUSTOMIZATION "ParallelHash" |
Functions | |
VOID EFIAPI | ParallelHashApExecute (IN VOID *ProcedureArgument) |
BOOLEAN EFIAPI | ParallelHash256HashAll (IN CONST VOID *Input, IN UINTN InputByteLen, IN UINTN BlockSize, OUT VOID *Output, IN UINTN OutputByteLen, IN CONST VOID *Customization, IN UINTN CustomByteLen) |
Variables | |
UINTN | mBlockNum |
UINTN | mBlockSize |
UINTN | mLastBlockSize |
UINT8 * | mInput |
UINTN | mBlockResultSize |
UINT8 * | mBlockHashResult |
BOOLEAN * | mBlockIsCompleted |
SPIN_LOCK * | mSpinLockList |
ParallelHash Implementation.
Copyright (c) 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file CryptParallelHash.c.
#define PARALLELHASH_CUSTOMIZATION "ParallelHash" |
Definition at line 12 of file CryptParallelHash.c.
BOOLEAN EFIAPI ParallelHash256HashAll | ( | IN CONST VOID * | Input, |
IN UINTN | InputByteLen, | ||
IN UINTN | BlockSize, | ||
OUT VOID * | Output, | ||
IN UINTN | OutputByteLen, | ||
IN CONST VOID * | Customization, | ||
IN UINTN | CustomByteLen | ||
) |
Parallel hash function ParallelHash256, as defined in NIST's Special Publication 800-185, published December 2016.
[in] | Input | Pointer to the input message (X). |
[in] | InputByteLen | The number(>0) of input bytes provided for the input data. |
[in] | BlockSize | The size of each block (B). |
[out] | Output | Pointer to the output buffer. |
[in] | OutputByteLen | The desired number of output bytes (L). |
[in] | Customization | Pointer to the customization string (S). |
[in] | CustomByteLen | The length of the customization string in bytes. |
TRUE | ParallelHash256 digest computation succeeded. |
FALSE | ParallelHash256 digest computation failed. |
FALSE | This interface is not supported. |
Definition at line 90 of file CryptParallelHash.c.
VOID EFIAPI ParallelHashApExecute | ( | IN VOID * | ProcedureArgument | ) |
Complete computation of digest of each block.
Each AP perform the function called by BSP.
[in] | ProcedureArgument | Argument of the procedure. |
Definition at line 32 of file CryptParallelHash.c.
UINT8* mBlockHashResult |
Definition at line 19 of file CryptParallelHash.c.
BOOLEAN* mBlockIsCompleted |
Definition at line 20 of file CryptParallelHash.c.
UINTN mBlockNum |
Definition at line 14 of file CryptParallelHash.c.
UINTN mBlockResultSize |
Definition at line 18 of file CryptParallelHash.c.
UINTN mBlockSize |
Definition at line 15 of file CryptParallelHash.c.
UINT8* mInput |
Definition at line 17 of file CryptParallelHash.c.
UINTN mLastBlockSize |
Definition at line 16 of file CryptParallelHash.c.
SPIN_LOCK* mSpinLockList |
Definition at line 21 of file CryptParallelHash.c.