SecurityPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the SecurityPkg 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: Jian J Wang <jian.j.wang@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
39de741e2d
commit
c411b485b6
@ -32,57 +32,56 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#include <Guid/AuthenticatedVariableFormat.h>
|
||||
#include <IndustryStandard/PeImage.h>
|
||||
|
||||
#define EFI_CERT_TYPE_RSA2048_SHA256_SIZE 256
|
||||
#define EFI_CERT_TYPE_RSA2048_SIZE 256
|
||||
#define MAX_NOTIFY_STRING_LEN 64
|
||||
#define TWO_BYTE_ENCODE 0x82
|
||||
#define EFI_CERT_TYPE_RSA2048_SHA256_SIZE 256
|
||||
#define EFI_CERT_TYPE_RSA2048_SIZE 256
|
||||
#define MAX_NOTIFY_STRING_LEN 64
|
||||
#define TWO_BYTE_ENCODE 0x82
|
||||
|
||||
#define ALIGNMENT_SIZE 8
|
||||
#define ALIGN_SIZE(a) (((a) % ALIGNMENT_SIZE) ? ALIGNMENT_SIZE - ((a) % ALIGNMENT_SIZE) : 0)
|
||||
#define ALIGNMENT_SIZE 8
|
||||
#define ALIGN_SIZE(a) (((a) % ALIGNMENT_SIZE) ? ALIGNMENT_SIZE - ((a) % ALIGNMENT_SIZE) : 0)
|
||||
|
||||
//
|
||||
// Image type definitions
|
||||
//
|
||||
#define IMAGE_UNKNOWN 0x00000000
|
||||
#define IMAGE_FROM_FV 0x00000001
|
||||
#define IMAGE_FROM_OPTION_ROM 0x00000002
|
||||
#define IMAGE_FROM_REMOVABLE_MEDIA 0x00000003
|
||||
#define IMAGE_FROM_FIXED_MEDIA 0x00000004
|
||||
#define IMAGE_UNKNOWN 0x00000000
|
||||
#define IMAGE_FROM_FV 0x00000001
|
||||
#define IMAGE_FROM_OPTION_ROM 0x00000002
|
||||
#define IMAGE_FROM_REMOVABLE_MEDIA 0x00000003
|
||||
#define IMAGE_FROM_FIXED_MEDIA 0x00000004
|
||||
|
||||
//
|
||||
// Authorization policy bit definition
|
||||
//
|
||||
#define ALWAYS_EXECUTE 0x00000000
|
||||
#define NEVER_EXECUTE 0x00000001
|
||||
#define ALLOW_EXECUTE_ON_SECURITY_VIOLATION 0x00000002
|
||||
#define DEFER_EXECUTE_ON_SECURITY_VIOLATION 0x00000003
|
||||
#define DENY_EXECUTE_ON_SECURITY_VIOLATION 0x00000004
|
||||
#define QUERY_USER_ON_SECURITY_VIOLATION 0x00000005
|
||||
#define ALWAYS_EXECUTE 0x00000000
|
||||
#define NEVER_EXECUTE 0x00000001
|
||||
#define ALLOW_EXECUTE_ON_SECURITY_VIOLATION 0x00000002
|
||||
#define DEFER_EXECUTE_ON_SECURITY_VIOLATION 0x00000003
|
||||
#define DENY_EXECUTE_ON_SECURITY_VIOLATION 0x00000004
|
||||
#define QUERY_USER_ON_SECURITY_VIOLATION 0x00000005
|
||||
|
||||
//
|
||||
// Support hash types
|
||||
//
|
||||
#define HASHALG_SHA1 0x00000000
|
||||
#define HASHALG_SHA224 0x00000001
|
||||
#define HASHALG_SHA256 0x00000002
|
||||
#define HASHALG_SHA384 0x00000003
|
||||
#define HASHALG_SHA512 0x00000004
|
||||
#define HASHALG_MAX 0x00000005
|
||||
#define HASHALG_SHA1 0x00000000
|
||||
#define HASHALG_SHA224 0x00000001
|
||||
#define HASHALG_SHA256 0x00000002
|
||||
#define HASHALG_SHA384 0x00000003
|
||||
#define HASHALG_SHA512 0x00000004
|
||||
#define HASHALG_MAX 0x00000005
|
||||
|
||||
//
|
||||
// Set max digest size as SHA512 Output (64 bytes) by far
|
||||
//
|
||||
#define MAX_DIGEST_SIZE SHA512_DIGEST_SIZE
|
||||
#define MAX_DIGEST_SIZE SHA512_DIGEST_SIZE
|
||||
//
|
||||
//
|
||||
// PKCS7 Certificate definition
|
||||
//
|
||||
typedef struct {
|
||||
WIN_CERTIFICATE Hdr;
|
||||
UINT8 CertData[1];
|
||||
WIN_CERTIFICATE Hdr;
|
||||
UINT8 CertData[1];
|
||||
} WIN_CERTIFICATE_EFI_PKCS;
|
||||
|
||||
|
||||
/**
|
||||
Retrieves the size, in bytes, of the context buffer required for hash operations.
|
||||
|
||||
@ -113,7 +112,6 @@ BOOLEAN
|
||||
IN OUT VOID *HashContext
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
Performs digest on a data buffer of the specified length. This function can
|
||||
be called multiple times to compute the digest of long or discontinuous data streams.
|
||||
@ -159,7 +157,6 @@ BOOLEAN
|
||||
OUT UINT8 *HashValue
|
||||
);
|
||||
|
||||
|
||||
//
|
||||
// Hash Algorithm Table
|
||||
//
|
||||
|
Reference in New Issue
Block a user