FmpDevicePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the FmpDevicePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
bcdcc4160d
commit
45ce0a67bb
@@ -54,7 +54,7 @@ DetectTestKey (
|
||||
//
|
||||
PublicKeyDataXdr = PcdGetPtr (PcdFmpDevicePkcs7CertBufferXdr);
|
||||
PublicKeyDataXdrEnd = PublicKeyDataXdr + PcdGetSize (PcdFmpDevicePkcs7CertBufferXdr);
|
||||
if (PublicKeyDataXdr == NULL || PublicKeyDataXdr == PublicKeyDataXdrEnd) {
|
||||
if ((PublicKeyDataXdr == NULL) || (PublicKeyDataXdr == PublicKeyDataXdrEnd)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -76,6 +76,7 @@ DetectTestKey (
|
||||
//
|
||||
break;
|
||||
}
|
||||
|
||||
//
|
||||
// Read key length stored in big endian format
|
||||
//
|
||||
@@ -100,10 +101,12 @@ DetectTestKey (
|
||||
TestKeyUsed = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!Sha256Update (HashContext, PublicKeyDataXdr, PublicKeyDataLength)) {
|
||||
TestKeyUsed = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!Sha256Final (HashContext, Digest)) {
|
||||
TestKeyUsed = TRUE;
|
||||
break;
|
||||
@@ -121,7 +124,7 @@ DetectTestKey (
|
||||
// Point to start of next key
|
||||
//
|
||||
PublicKeyDataXdr += PublicKeyDataLength;
|
||||
PublicKeyDataXdr = (UINT8 *)ALIGN_POINTER (PublicKeyDataXdr, sizeof (UINT32));
|
||||
PublicKeyDataXdr = (UINT8 *)ALIGN_POINTER (PublicKeyDataXdr, sizeof (UINT32));
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user