From e498b96a97dd58f4f2b2ca292e96276c7a75ee80 Mon Sep 17 00:00:00 2001 From: Feng Tian Date: Fri, 8 May 2015 07:50:00 +0000 Subject: [PATCH] MdePkg: Add missing GUID variables in SmartCardEdge.h Declares some extern EFI_GUID variables which correspond to guid macros in SmartCardEdge.h for C code use. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Qin Long git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17379 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Protocol/SmartCardEdge.h | 13 +++++++++++++ MdePkg/MdePkg.dec | 7 +++++++ 2 files changed, 20 insertions(+) diff --git a/MdePkg/Include/Protocol/SmartCardEdge.h b/MdePkg/Include/Protocol/SmartCardEdge.h index 2f95c9815e..ac5095c375 100644 --- a/MdePkg/Include/Protocol/SmartCardEdge.h +++ b/MdePkg/Include/Protocol/SmartCardEdge.h @@ -157,6 +157,9 @@ typedef UINT8 SMART_CARD_CSN[SCARD_CSN_SIZE]; { \ 0x9317ec24, 0x7cb0, 0x4d0e, {0x8b, 0x32, 0x2e, 0xd9, 0x20, 0x9c, 0xd8, 0xaf} \ } + +extern EFI_GUID gEfiPaddingRsassaPkcs1V1P5Guid; + // // RSASSA-PSS padding method, for signature // @@ -165,6 +168,8 @@ typedef UINT8 SMART_CARD_CSN[SCARD_CSN_SIZE]; 0x7b2349e0, 0x522d, 0x4f8e, {0xb9, 0x27, 0x69, 0xd9, 0x7c, 0x9e, 0x79, 0x5f} \ } +extern EFI_GUID gEfiPaddingRsassaPssGuid; + // // Padding methods GUIDs for decryption // @@ -175,6 +180,9 @@ typedef UINT8 SMART_CARD_CSN[SCARD_CSN_SIZE]; { \ 0x3629ddb1, 0x228c, 0x452e, {0xb6, 0x16, 0x09, 0xed, 0x31, 0x6a, 0x97, 0x00} \ } + +extern EFI_GUID gEfiPaddingNoneGuid; + // // RSAES-PKCS#1-V1.5 padding, for decryption // @@ -182,6 +190,9 @@ typedef UINT8 SMART_CARD_CSN[SCARD_CSN_SIZE]; { \ 0xe1c1d0a9, 0x40b1, 0x4632, {0xbd, 0xcc, 0xd9, 0xd6, 0xe5, 0x29, 0x56, 0x31} \ } + +extern EFI_GUID gEfiPaddingRsaesPkcs1V1P5Guid; + // // RSAES-OAEP padding, for decryption // @@ -190,6 +201,8 @@ typedef UINT8 SMART_CARD_CSN[SCARD_CSN_SIZE]; 0xc1e63ac4, 0xd0cf, 0x4ce6, {0x83, 0x5b, 0xee, 0xd0, 0xe6, 0xa8, 0xa4, 0x5b} \ } +extern EFI_GUID gEfiPaddingRsaesOaepGuid; + /** This function retrieves the context driver. diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index dccc36793f..8b4d556584 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -579,6 +579,13 @@ gEfiBlockIoCryptoAlgoAesXtsGuid = { 0x2f87ba6a, 0x5c04, 0x4385, {0xa7, 0x80, 0xf3, 0xbf, 0x78, 0xa9, 0x7b, 0xec }} gEfiBlockIoCryptoAlgoAesCbcMsBitlockerGuid = { 0x689e4c62, 0x70bf, 0x4cf3, {0x88, 0xbb, 0x33, 0xb3, 0x18, 0x26, 0x86, 0x70 }} + ## Include/Protocol/SmartCardEdge.h + gEfiPaddingRsassaPkcs1V1P5Guid = { 0x9317ec24, 0x7cb0, 0x4d0e, {0x8b, 0x32, 0x2e, 0xd9, 0x20, 0x9c, 0xd8, 0xaf }} + gEfiPaddingRsassaPssGuid = { 0x7b2349e0, 0x522d, 0x4f8e, {0xb9, 0x27, 0x69, 0xd9, 0x7c, 0x9e, 0x79, 0x5f }} + gEfiPaddingNoneGuid = { 0x3629ddb1, 0x228c, 0x452e, {0xb6, 0x16, 0x09, 0xed, 0x31, 0x6a, 0x97, 0x00 }} + gEfiPaddingRsaesPkcs1V1P5Guid = { 0xe1c1d0a9, 0x40b1, 0x4632, {0xbd, 0xcc, 0xd9, 0xd6, 0xe5, 0x29, 0x56, 0x31 }} + gEfiPaddingRsaesOaepGuid = { 0xc1e63ac4, 0xd0cf, 0x4ce6, {0x83, 0x5b, 0xee, 0xd0, 0xe6, 0xa8, 0xa4, 0x5b }} + # # GUID defined in PI1.0 #