TianoCore EDK2 master
|
#include "FmpDxe.h"
Go to the source code of this file.
Functions | |
VOID | DetectTestKey (VOID) |
Detects if PcdFmpDevicePkcs7CertBufferXdr contains a test key.
Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DetectTestKey.c.
VOID DetectTestKey | ( | VOID | ) |
Check to see if any of the keys in PcdFmpDevicePkcs7CertBufferXdr matches the test key. PcdFmpDeviceTestKeySha256Digest contains the SHA256 hash of the test key. For each key in PcdFmpDevicePkcs7CertBufferXdr, compute the SHA256 hash and compare it to PcdFmpDeviceTestKeySha256Digest. If the SHA256 hash matches or there is then error computing the SHA256 hash, then set PcdTestKeyUsed to TRUE. Skip this check if PcdTestKeyUsed is already TRUE or PcdFmpDeviceTestKeySha256Digest is not exactly SHA256_DIGEST_SIZE bytes.
Definition at line 23 of file DetectTestKey.c.