-/** @file\r
+/** @file\r
Detects if PcdFmpDevicePkcs7CertBufferXdr contains a test key.\r
\r
Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>\r
UINT8 *PublicKeyDataXdrEnd;\r
VOID *HashContext;\r
UINT8 Digest[SHA256_DIGEST_SIZE];\r
+ UINTN TestKeyDigestSize;\r
\r
//\r
// If PcdFmpDeviceTestKeySha256Digest is not exacty SHA256_DIGEST_SIZE bytes,\r
// then skip the test key detection.\r
//\r
- if (PcdGetSize (PcdFmpDeviceTestKeySha256Digest) != SHA256_DIGEST_SIZE) {\r
+ TestKeyDigestSize = PcdGetSize (PcdFmpDeviceTestKeySha256Digest);\r
+ if (TestKeyDigestSize != SHA256_DIGEST_SIZE) {\r
return;\r
}\r
\r