MdePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg 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
1436aea4d5
commit
2f88bd3a12
@@ -22,20 +22,20 @@
|
||||
0xd317f29b, 0xa325, 0x4712, {0x9b, 0xf1, 0xc6, 0x19, 0x54, 0xdc, 0x19, 0x8c} \
|
||||
}
|
||||
|
||||
typedef struct _EFI_SMART_CARD_EDGE_PROTOCOL EFI_SMART_CARD_EDGE_PROTOCOL;
|
||||
typedef struct _EFI_SMART_CARD_EDGE_PROTOCOL EFI_SMART_CARD_EDGE_PROTOCOL;
|
||||
|
||||
//
|
||||
// Maximum size for a Smart Card AID (Application IDentifier)
|
||||
//
|
||||
#define SCARD_AID_MAXSIZE 0x0010
|
||||
#define SCARD_AID_MAXSIZE 0x0010
|
||||
//
|
||||
// Size of CSN (Card Serial Number)
|
||||
//
|
||||
#define SCARD_CSN_SIZE 0x0010
|
||||
#define SCARD_CSN_SIZE 0x0010
|
||||
//
|
||||
// Current specification version 1.00
|
||||
//
|
||||
#define SMART_CARD_EDGE_PROTOCOL_VERSION_1 0x00000100
|
||||
#define SMART_CARD_EDGE_PROTOCOL_VERSION_1 0x00000100
|
||||
//
|
||||
// Parameters type definition
|
||||
//
|
||||
@@ -47,23 +47,23 @@ typedef UINT8 SMART_CARD_CSN[SCARD_CSN_SIZE];
|
||||
//
|
||||
// value of tag field for header, the number of containers
|
||||
//
|
||||
#define SC_EDGE_TAG_HEADER 0x0000
|
||||
#define SC_EDGE_TAG_HEADER 0x0000
|
||||
//
|
||||
// value of tag field for certificate
|
||||
//
|
||||
#define SC_EDGE_TAG_CERT 0x0001
|
||||
#define SC_EDGE_TAG_CERT 0x0001
|
||||
//
|
||||
// value of tag field for key index associated with certificate
|
||||
//
|
||||
#define SC_EDGE_TAG_KEY_ID 0x0002
|
||||
#define SC_EDGE_TAG_KEY_ID 0x0002
|
||||
//
|
||||
// value of tag field for key type
|
||||
//
|
||||
#define SC_EDGE_TAG_KEY_TYPE 0x0003
|
||||
#define SC_EDGE_TAG_KEY_TYPE 0x0003
|
||||
//
|
||||
// value of tag field for key size
|
||||
//
|
||||
#define SC_EDGE_TAG_KEY_SIZE 0x0004
|
||||
#define SC_EDGE_TAG_KEY_SIZE 0x0004
|
||||
|
||||
//
|
||||
// Length of L fields of TLV items
|
||||
@@ -71,42 +71,42 @@ typedef UINT8 SMART_CARD_CSN[SCARD_CSN_SIZE];
|
||||
//
|
||||
// size of L field for header
|
||||
//
|
||||
#define SC_EDGE_L_SIZE_HEADER 1
|
||||
#define SC_EDGE_L_SIZE_HEADER 1
|
||||
//
|
||||
// size of L field for certificate (big endian)
|
||||
//
|
||||
#define SC_EDGE_L_SIZE_CERT 2
|
||||
#define SC_EDGE_L_SIZE_CERT 2
|
||||
//
|
||||
// size of L field for key index
|
||||
//
|
||||
#define SC_EDGE_L_SIZE_KEY_ID 1
|
||||
#define SC_EDGE_L_SIZE_KEY_ID 1
|
||||
//
|
||||
// size of L field for key type
|
||||
//
|
||||
#define SC_EDGE_L_SIZE_KEY_TYPE 1
|
||||
#define SC_EDGE_L_SIZE_KEY_TYPE 1
|
||||
//
|
||||
// size of L field for key size (big endian)
|
||||
//
|
||||
#define SC_EDGE_L_SIZE_KEY_SIZE 2
|
||||
#define SC_EDGE_L_SIZE_KEY_SIZE 2
|
||||
|
||||
//
|
||||
// Some TLV items have a fixed value for L field
|
||||
//
|
||||
// value of L field for header
|
||||
//
|
||||
#define SC_EDGE_L_VALUE_HEADER 1
|
||||
#define SC_EDGE_L_VALUE_HEADER 1
|
||||
//
|
||||
// value of L field for key index
|
||||
//
|
||||
#define SC_EDGE_L_VALUE_KEY_ID 1
|
||||
#define SC_EDGE_L_VALUE_KEY_ID 1
|
||||
//
|
||||
// value of L field for key type
|
||||
//
|
||||
#define SC_EDGE_L_VALUE_KEY_TYPE 1
|
||||
#define SC_EDGE_L_VALUE_KEY_TYPE 1
|
||||
//
|
||||
// value of L field for key size
|
||||
//
|
||||
#define SC_EDGE_L_VALUE_KEY_SIZE 2
|
||||
#define SC_EDGE_L_VALUE_KEY_SIZE 2
|
||||
|
||||
//
|
||||
// Possible values for key type
|
||||
@@ -114,35 +114,35 @@ typedef UINT8 SMART_CARD_CSN[SCARD_CSN_SIZE];
|
||||
//
|
||||
// RSA decryption
|
||||
//
|
||||
#define SC_EDGE_RSA_EXCHANGE 0x01
|
||||
#define SC_EDGE_RSA_EXCHANGE 0x01
|
||||
//
|
||||
// RSA signature
|
||||
//
|
||||
#define SC_EDGE_RSA_SIGNATURE 0x02
|
||||
#define SC_EDGE_RSA_SIGNATURE 0x02
|
||||
//
|
||||
// ECDSA signature
|
||||
//
|
||||
#define SC_EDGE_ECDSA_256 0x03
|
||||
#define SC_EDGE_ECDSA_256 0x03
|
||||
//
|
||||
// ECDSA signature
|
||||
//
|
||||
#define SC_EDGE_ECDSA_384 0x04
|
||||
#define SC_EDGE_ECDSA_384 0x04
|
||||
//
|
||||
// ECDSA signature
|
||||
//
|
||||
#define SC_EDGE_ECDSA_521 0x05
|
||||
#define SC_EDGE_ECDSA_521 0x05
|
||||
//
|
||||
// ECDH agreement
|
||||
//
|
||||
#define SC_EDGE_ECDH_256 0x06
|
||||
#define SC_EDGE_ECDH_256 0x06
|
||||
//
|
||||
// ECDH agreement
|
||||
//
|
||||
#define SC_EDGE_ECDH_384 0x07
|
||||
#define SC_EDGE_ECDH_384 0x07
|
||||
//
|
||||
// ECDH agreement
|
||||
//
|
||||
#define SC_EDGE_ECDH_521 0x08
|
||||
#define SC_EDGE_ECDH_521 0x08
|
||||
|
||||
//
|
||||
// Padding methods GUIDs for signature
|
||||
@@ -155,7 +155,7 @@ typedef UINT8 SMART_CARD_CSN[SCARD_CSN_SIZE];
|
||||
0x9317ec24, 0x7cb0, 0x4d0e, {0x8b, 0x32, 0x2e, 0xd9, 0x20, 0x9c, 0xd8, 0xaf} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiPaddingRsassaPkcs1V1P5Guid;
|
||||
extern EFI_GUID gEfiPaddingRsassaPkcs1V1P5Guid;
|
||||
|
||||
//
|
||||
// RSASSA-PSS padding method, for signature
|
||||
@@ -165,7 +165,7 @@ extern EFI_GUID gEfiPaddingRsassaPkcs1V1P5Guid;
|
||||
0x7b2349e0, 0x522d, 0x4f8e, {0xb9, 0x27, 0x69, 0xd9, 0x7c, 0x9e, 0x79, 0x5f} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiPaddingRsassaPssGuid;
|
||||
extern EFI_GUID gEfiPaddingRsassaPssGuid;
|
||||
|
||||
//
|
||||
// Padding methods GUIDs for decryption
|
||||
@@ -178,7 +178,7 @@ extern EFI_GUID gEfiPaddingRsassaPssGuid;
|
||||
0x3629ddb1, 0x228c, 0x452e, {0xb6, 0x16, 0x09, 0xed, 0x31, 0x6a, 0x97, 0x00} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiPaddingNoneGuid;
|
||||
extern EFI_GUID gEfiPaddingNoneGuid;
|
||||
|
||||
//
|
||||
// RSAES-PKCS#1-V1.5 padding, for decryption
|
||||
@@ -188,7 +188,7 @@ extern EFI_GUID gEfiPaddingNoneGuid;
|
||||
0xe1c1d0a9, 0x40b1, 0x4632, {0xbd, 0xcc, 0xd9, 0xd6, 0xe5, 0x29, 0x56, 0x31} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiPaddingRsaesPkcs1V1P5Guid;
|
||||
extern EFI_GUID gEfiPaddingRsaesPkcs1V1P5Guid;
|
||||
|
||||
//
|
||||
// RSAES-OAEP padding, for decryption
|
||||
@@ -198,7 +198,7 @@ extern EFI_GUID gEfiPaddingRsaesPkcs1V1P5Guid;
|
||||
0xc1e63ac4, 0xd0cf, 0x4ce6, {0x83, 0x5b, 0xee, 0xd0, 0xe6, 0xa8, 0xa4, 0x5b} \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiPaddingRsaesOaepGuid;
|
||||
extern EFI_GUID gEfiPaddingRsaesOaepGuid;
|
||||
|
||||
/**
|
||||
This function retrieves the context driver.
|
||||
@@ -245,15 +245,15 @@ extern EFI_GUID gEfiPaddingRsaesOaepGuid;
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_CONTEXT) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_CONTEXT)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
OUT UINTN *NumberAidSupported,
|
||||
OUT UINTN *NumberAidSupported,
|
||||
IN OUT UINTN *AidTableSize OPTIONAL,
|
||||
OUT SMART_CARD_AID *AidTable OPTIONAL,
|
||||
OUT UINTN *NumberSCPresent,
|
||||
OUT SMART_CARD_AID *AidTable OPTIONAL,
|
||||
OUT UINTN *NumberSCPresent,
|
||||
IN OUT UINTN *CsnTableSize OPTIONAL,
|
||||
OUT SMART_CARD_CSN *CsnTable OPTIONAL,
|
||||
OUT UINT32 *VersionScEdgeProtocol OPTIONAL
|
||||
OUT SMART_CARD_CSN *CsnTable OPTIONAL,
|
||||
OUT UINT32 *VersionScEdgeProtocol OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -287,11 +287,11 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_CONNECT) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_CONNECT)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
OUT EFI_HANDLE *SCardHandle,
|
||||
OUT EFI_HANDLE *SCardHandle,
|
||||
IN UINT8 *ScardCsn OPTIONAL,
|
||||
OUT UINT8 *ScardAid OPTIONAL
|
||||
OUT UINT8 *ScardAid OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -311,7 +311,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_DISCONNECT) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_DISCONNECT)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
IN EFI_HANDLE SCardHandle
|
||||
);
|
||||
@@ -332,10 +332,10 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_CSN) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_CSN)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
IN EFI_HANDLE SCardHandle,
|
||||
OUT UINT8 Csn[SCARD_CSN_SIZE]
|
||||
OUT UINT8 Csn[SCARD_CSN_SIZE]
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -359,11 +359,11 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_READER_NAME) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_READER_NAME)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
IN EFI_HANDLE SCardHandle,
|
||||
IN OUT UINTN *ReaderNameLength,
|
||||
OUT CHAR16 *ReaderName OPTIONAL
|
||||
OUT CHAR16 *ReaderName OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -409,13 +409,13 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_VERIFY_PIN) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_VERIFY_PIN)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
IN EFI_HANDLE SCardHandle,
|
||||
IN INT32 PinSize,
|
||||
IN UINT8 *PinCode,
|
||||
OUT BOOLEAN *PinResult,
|
||||
OUT UINT32 *RemainingAttempts OPTIONAL
|
||||
OUT BOOLEAN *PinResult,
|
||||
OUT UINT32 *RemainingAttempts OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -440,10 +440,10 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_PIN_REMAINING) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_PIN_REMAINING)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
IN EFI_HANDLE SCardHandle,
|
||||
OUT UINT32 *RemainingAttempts
|
||||
OUT UINT32 *RemainingAttempts
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -479,12 +479,12 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_DATA) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_DATA)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
IN EFI_HANDLE SCardHandle,
|
||||
IN EFI_GUID *DataId,
|
||||
IN OUT UINTN *DataSize,
|
||||
OUT VOID *Data OPTIONAL
|
||||
OUT VOID *Data OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -530,11 +530,11 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_CREDENTIAL) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_GET_CREDENTIAL)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
IN EFI_HANDLE SCardHandle,
|
||||
IN OUT UINTN *CredentialSize,
|
||||
OUT UINT8 *CredentialList OPTIONAL
|
||||
OUT UINT8 *CredentialList OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -588,7 +588,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_SIGN_DATA) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_SIGN_DATA)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
IN EFI_HANDLE SCardHandle,
|
||||
IN UINTN KeyId,
|
||||
@@ -596,7 +596,7 @@ EFI_STATUS
|
||||
IN EFI_GUID *HashAlgorithm,
|
||||
IN EFI_GUID *PaddingMethod,
|
||||
IN UINT8 *HashedData,
|
||||
OUT UINT8 *SignatureData
|
||||
OUT UINT8 *SignatureData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -652,7 +652,7 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_DECRYPT_DATA) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_DECRYPT_DATA)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
IN EFI_HANDLE SCardHandle,
|
||||
IN UINTN KeyId,
|
||||
@@ -661,7 +661,7 @@ EFI_STATUS
|
||||
IN UINTN EncryptedSize,
|
||||
IN UINT8 *EncryptedData,
|
||||
IN OUT UINTN *PlaintextSize,
|
||||
OUT UINT8 *PlaintextData
|
||||
OUT UINT8 *PlaintextData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -702,13 +702,13 @@ EFI_STATUS
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_BUILD_DH_AGREEMENT) (
|
||||
(EFIAPI *EFI_SMART_CARD_EDGE_BUILD_DH_AGREEMENT)(
|
||||
IN EFI_SMART_CARD_EDGE_PROTOCOL *This,
|
||||
IN EFI_HANDLE SCardHandle,
|
||||
IN UINTN KeyId,
|
||||
IN UINT8 *dataQx,
|
||||
IN UINT8 *dataQy,
|
||||
OUT UINT8 *DHAgreement
|
||||
OUT UINT8 *DHAgreement
|
||||
);
|
||||
|
||||
///
|
||||
@@ -716,21 +716,20 @@ EFI_STATUS
|
||||
/// smart card in the reader or to the reader itself.
|
||||
///
|
||||
struct _EFI_SMART_CARD_EDGE_PROTOCOL {
|
||||
EFI_SMART_CARD_EDGE_GET_CONTEXT GetContext;
|
||||
EFI_SMART_CARD_EDGE_CONNECT Connect;
|
||||
EFI_SMART_CARD_EDGE_DISCONNECT Disconnect;
|
||||
EFI_SMART_CARD_EDGE_GET_CSN GetCsn;
|
||||
EFI_SMART_CARD_EDGE_GET_READER_NAME GetReaderName;
|
||||
EFI_SMART_CARD_EDGE_VERIFY_PIN VerifyPin;
|
||||
EFI_SMART_CARD_EDGE_GET_PIN_REMAINING GetPinRemaining;
|
||||
EFI_SMART_CARD_EDGE_GET_DATA GetData;
|
||||
EFI_SMART_CARD_EDGE_GET_CREDENTIAL GetCredential;
|
||||
EFI_SMART_CARD_EDGE_SIGN_DATA SignData;
|
||||
EFI_SMART_CARD_EDGE_DECRYPT_DATA DecryptData;
|
||||
EFI_SMART_CARD_EDGE_BUILD_DH_AGREEMENT BuildDHAgreement;
|
||||
EFI_SMART_CARD_EDGE_GET_CONTEXT GetContext;
|
||||
EFI_SMART_CARD_EDGE_CONNECT Connect;
|
||||
EFI_SMART_CARD_EDGE_DISCONNECT Disconnect;
|
||||
EFI_SMART_CARD_EDGE_GET_CSN GetCsn;
|
||||
EFI_SMART_CARD_EDGE_GET_READER_NAME GetReaderName;
|
||||
EFI_SMART_CARD_EDGE_VERIFY_PIN VerifyPin;
|
||||
EFI_SMART_CARD_EDGE_GET_PIN_REMAINING GetPinRemaining;
|
||||
EFI_SMART_CARD_EDGE_GET_DATA GetData;
|
||||
EFI_SMART_CARD_EDGE_GET_CREDENTIAL GetCredential;
|
||||
EFI_SMART_CARD_EDGE_SIGN_DATA SignData;
|
||||
EFI_SMART_CARD_EDGE_DECRYPT_DATA DecryptData;
|
||||
EFI_SMART_CARD_EDGE_BUILD_DH_AGREEMENT BuildDHAgreement;
|
||||
};
|
||||
|
||||
extern EFI_GUID gEfiSmartCardEdgeProtocolGuid;
|
||||
extern EFI_GUID gEfiSmartCardEdgeProtocolGuid;
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user