0xa00490ba, 0x3f1a, 0x4b4c, {0xab, 0x90, 0x4f, 0xa9, 0x97, 0x26, 0xa1, 0xe8} \\r
}\r
\r
-typedef struct _EFI_BLOCK_IO_CRYPTO_PROTOCOL EFI_BLOCK_IO_CRYPTO_PROTOCOL;\r
+typedef struct _EFI_BLOCK_IO_CRYPTO_PROTOCOL EFI_BLOCK_IO_CRYPTO_PROTOCOL;\r
\r
///\r
/// The struct of Block I/O Crypto Token.\r
// Event will be signaled when the read request is completed and data was\r
// decrypted (when Index was specified).\r
//\r
- EFI_EVENT Event;\r
+ EFI_EVENT Event;\r
//\r
// Defines whether or not the signaled event encountered an error.\r
//\r
- EFI_STATUS TransactionStatus;\r
+ EFI_STATUS TransactionStatus;\r
} EFI_BLOCK_IO_CRYPTO_TOKEN;\r
\r
typedef struct {\r
//\r
// GUID of the algorithm.\r
//\r
- EFI_GUID Algorithm;\r
+ EFI_GUID Algorithm;\r
//\r
// Specifies KeySizein bits used with this Algorithm.\r
//\r
- UINT64 KeySize;\r
+ UINT64 KeySize;\r
//\r
// Specifies bitmask of block sizes supported by this algorithm.\r
// Bit j being set means that 2^j bytes crypto block size is supported.\r
//\r
- UINT64 CryptoBlockSizeBitMask;\r
+ UINT64 CryptoBlockSizeBitMask;\r
} EFI_BLOCK_IO_CRYPTO_CAPABILITY;\r
\r
///\r
/// the Inline Cryptographic Interface.\r
///\r
typedef struct {\r
- UINT64 InputSize;\r
+ UINT64 InputSize;\r
} EFI_BLOCK_IO_CRYPTO_IV_INPUT;\r
\r
#define EFI_BLOCK_IO_CRYPTO_ALGO_GUID_AES_XTS \\r
0x2f87ba6a, 0x5c04, 0x4385, {0xa7, 0x80, 0xf3, 0xbf, 0x78, 0xa9, 0x7b, 0xec} \\r
}\r
\r
-extern EFI_GUID gEfiBlockIoCryptoAlgoAesXtsGuid;\r
+extern EFI_GUID gEfiBlockIoCryptoAlgoAesXtsGuid;\r
\r
typedef struct {\r
- EFI_BLOCK_IO_CRYPTO_IV_INPUT Header;\r
- UINT64 CryptoBlockNumber;\r
- UINT64 CryptoBlockByteSize;\r
+ EFI_BLOCK_IO_CRYPTO_IV_INPUT Header;\r
+ UINT64 CryptoBlockNumber;\r
+ UINT64 CryptoBlockByteSize;\r
} EFI_BLOCK_IO_CRYPTO_IV_INPUT_AES_XTS;\r
\r
#define EFI_BLOCK_IO_CRYPTO_ALGO_GUID_AES_CBC_MICROSOFT_BITLOCKER \\r
0x689e4c62, 0x70bf, 0x4cf3, {0x88, 0xbb, 0x33, 0xb3, 0x18, 0x26, 0x86, 0x70} \\r
}\r
\r
-extern EFI_GUID gEfiBlockIoCryptoAlgoAesCbcMsBitlockerGuid;\r
+extern EFI_GUID gEfiBlockIoCryptoAlgoAesCbcMsBitlockerGuid;\r
\r
typedef struct {\r
- EFI_BLOCK_IO_CRYPTO_IV_INPUT Header;\r
- UINT64 CryptoBlockByteOffset;\r
- UINT64 CryptoBlockByteSize;\r
+ EFI_BLOCK_IO_CRYPTO_IV_INPUT Header;\r
+ UINT64 CryptoBlockByteOffset;\r
+ UINT64 CryptoBlockByteSize;\r
} EFI_BLOCK_IO_CRYPTO_IV_INPUT_AES_CBC_MICROSOFT_BITLOCKER;\r
\r
-#define EFI_BLOCK_IO_CRYPTO_INDEX_ANY 0xFFFFFFFFFFFFFFFF\r
+#define EFI_BLOCK_IO_CRYPTO_INDEX_ANY 0xFFFFFFFFFFFFFFFF\r
\r
typedef struct {\r
//\r
// Is inline cryptographic capability supported on this device.\r
//\r
- BOOLEAN Supported;\r
+ BOOLEAN Supported;\r
//\r
// Maximum number of keys that can be configured at the same time.\r
//\r
- UINT64 KeyCount;\r
+ UINT64 KeyCount;\r
//\r
// Number of supported capabilities.\r
//\r
- UINT64 CapabilityCount;\r
+ UINT64 CapabilityCount;\r
//\r
// Array of supported capabilities.\r
//\r
- EFI_BLOCK_IO_CRYPTO_CAPABILITY Capabilities[1];\r
+ EFI_BLOCK_IO_CRYPTO_CAPABILITY Capabilities[1];\r
} EFI_BLOCK_IO_CRYPTO_CAPABILITIES;\r
\r
typedef struct {\r
// Configuration table index. A special Index EFI_BLOCK_IO_CRYPTO_INDEX_ANY can be\r
// used to set any available entry in the configuration table.\r
//\r
- UINT64 Index;\r
+ UINT64 Index;\r
//\r
// Identifies the owner of the configuration table entry. Entry can also be used\r
// with the Nil value to clear key from the configuration table index.\r
//\r
- EFI_GUID KeyOwnerGuid;\r
+ EFI_GUID KeyOwnerGuid;\r
//\r
// A supported capability to be used. The CryptoBlockSizeBitMask field of the\r
// structure should have only one bit set from the supported mask.\r
//\r
- EFI_BLOCK_IO_CRYPTO_CAPABILITY Capability;\r
+ EFI_BLOCK_IO_CRYPTO_CAPABILITY Capability;\r
//\r
// Pointer to the key. The size of the key is defined by the KeySize field of\r
// the capability specified by the Capability parameter.\r
//\r
- VOID *CryptoKey;\r
+ VOID *CryptoKey;\r
} EFI_BLOCK_IO_CRYPTO_CONFIGURATION_TABLE_ENTRY;\r
\r
typedef struct {\r
//\r
// Configuration table index.\r
//\r
- UINT64 Index;\r
+ UINT64 Index;\r
//\r
// Identifies the current owner of the entry.\r
//\r
- EFI_GUID KeyOwnerGuid;\r
+ EFI_GUID KeyOwnerGuid;\r
//\r
// The capability to be used. The CryptoBlockSizeBitMask field of the structure\r
// has only one bit set from the supported mask.\r
//\r
- EFI_BLOCK_IO_CRYPTO_CAPABILITY Capability;\r
+ EFI_BLOCK_IO_CRYPTO_CAPABILITY Capability;\r
} EFI_BLOCK_IO_CRYPTO_RESPONSE_CONFIGURATION_ENTRY;\r
\r
/**\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLOCK_IO_CRYPTO_RESET) (\r
+(EFIAPI *EFI_BLOCK_IO_CRYPTO_RESET)(\r
IN EFI_BLOCK_IO_CRYPTO_PROTOCOL *This,\r
IN BOOLEAN ExtendedVerification\r
);\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLOCK_IO_CRYPTO_GET_CAPABILITIES) (\r
+(EFIAPI *EFI_BLOCK_IO_CRYPTO_GET_CAPABILITIES)(\r
IN EFI_BLOCK_IO_CRYPTO_PROTOCOL *This,\r
- OUT EFI_BLOCK_IO_CRYPTO_CAPABILITIES *Capabilities\r
+ OUT EFI_BLOCK_IO_CRYPTO_CAPABILITIES *Capabilities\r
);\r
\r
/**\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLOCK_IO_CRYPTO_SET_CONFIGURATION) (\r
+(EFIAPI *EFI_BLOCK_IO_CRYPTO_SET_CONFIGURATION)(\r
IN EFI_BLOCK_IO_CRYPTO_PROTOCOL *This,\r
IN UINT64 ConfigurationCount,\r
IN EFI_BLOCK_IO_CRYPTO_CONFIGURATION_TABLE_ENTRY *ConfigurationTable,\r
- OUT EFI_BLOCK_IO_CRYPTO_RESPONSE_CONFIGURATION_ENTRY *ResultingTable OPTIONAL\r
+ OUT EFI_BLOCK_IO_CRYPTO_RESPONSE_CONFIGURATION_ENTRY *ResultingTable OPTIONAL\r
);\r
\r
/**\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLOCK_IO_CRYPTO_GET_CONFIGURATION) (\r
+(EFIAPI *EFI_BLOCK_IO_CRYPTO_GET_CONFIGURATION)(\r
IN EFI_BLOCK_IO_CRYPTO_PROTOCOL *This,\r
IN UINT64 StartIndex,\r
IN UINT64 ConfigurationCount,\r
IN EFI_GUID *KeyOwnerGuid OPTIONAL,\r
- OUT EFI_BLOCK_IO_CRYPTO_RESPONSE_CONFIGURATION_ENTRY *ConfigurationTable\r
-);\r
+ OUT EFI_BLOCK_IO_CRYPTO_RESPONSE_CONFIGURATION_ENTRY *ConfigurationTable\r
+ );\r
\r
/**\r
Reads the requested number of blocks from the device and optionally decrypts\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLOCK_IO_CRYPTO_READ_EXTENDED) (\r
+(EFIAPI *EFI_BLOCK_IO_CRYPTO_READ_EXTENDED)(\r
IN EFI_BLOCK_IO_CRYPTO_PROTOCOL *This,\r
IN UINT32 MediaId,\r
IN EFI_LBA LBA,\r
IN OUT EFI_BLOCK_IO_CRYPTO_TOKEN *Token,\r
IN UINT64 BufferSize,\r
- OUT VOID *Buffer,\r
+ OUT VOID *Buffer,\r
IN UINT64 *Index OPTIONAL,\r
IN VOID *CryptoIvInput OPTIONAL\r
);\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLOCK_IO_CRYPTO_WRITE_EXTENDED) (\r
+(EFIAPI *EFI_BLOCK_IO_CRYPTO_WRITE_EXTENDED)(\r
IN EFI_BLOCK_IO_CRYPTO_PROTOCOL *This,\r
IN UINT32 MediaId,\r
IN EFI_LBA LBA,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLOCK_IO_CRYPTO_FLUSH) (\r
+(EFIAPI *EFI_BLOCK_IO_CRYPTO_FLUSH)(\r
IN EFI_BLOCK_IO_CRYPTO_PROTOCOL *This,\r
IN OUT EFI_BLOCK_IO_CRYPTO_TOKEN *Token\r
);\r
/// drivers and applications to perform block encryption on a storage device, such as UFS.\r
///\r
struct _EFI_BLOCK_IO_CRYPTO_PROTOCOL {\r
- EFI_BLOCK_IO_MEDIA *Media;\r
- EFI_BLOCK_IO_CRYPTO_RESET Reset;\r
- EFI_BLOCK_IO_CRYPTO_GET_CAPABILITIES GetCapabilities;\r
- EFI_BLOCK_IO_CRYPTO_SET_CONFIGURATION SetConfiguration;\r
- EFI_BLOCK_IO_CRYPTO_GET_CONFIGURATION GetConfiguration;\r
- EFI_BLOCK_IO_CRYPTO_READ_EXTENDED ReadExtended;\r
- EFI_BLOCK_IO_CRYPTO_WRITE_EXTENDED WriteExtended;\r
- EFI_BLOCK_IO_CRYPTO_FLUSH FlushBlocks;\r
+ EFI_BLOCK_IO_MEDIA *Media;\r
+ EFI_BLOCK_IO_CRYPTO_RESET Reset;\r
+ EFI_BLOCK_IO_CRYPTO_GET_CAPABILITIES GetCapabilities;\r
+ EFI_BLOCK_IO_CRYPTO_SET_CONFIGURATION SetConfiguration;\r
+ EFI_BLOCK_IO_CRYPTO_GET_CONFIGURATION GetConfiguration;\r
+ EFI_BLOCK_IO_CRYPTO_READ_EXTENDED ReadExtended;\r
+ EFI_BLOCK_IO_CRYPTO_WRITE_EXTENDED WriteExtended;\r
+ EFI_BLOCK_IO_CRYPTO_FLUSH FlushBlocks;\r
};\r
\r
-extern EFI_GUID gEfiBlockIoCryptoProtocolGuid;\r
+extern EFI_GUID gEfiBlockIoCryptoProtocolGuid;\r
\r
#endif\r
-\r