public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "gaoliming via groups.io" <gaoliming=byosoft.com.cn@groups.io>
To: <devel@edk2.groups.io>, <wenxing.hou@intel.com>
Cc: "'Michael D Kinney'" <michael.d.kinney@intel.com>,
	"'Zhiguang Liu'" <zhiguang.liu@intel.com>,
	"'Jiewen Yao'" <jiewen.yao@intel.com>
Subject: 回复: [edk2-devel] [PATCH] MdePkg: Add UEFI 2.10 DeviceAuthentication
Date: Tue, 5 Mar 2024 08:31:51 +0800	[thread overview]
Message-ID: <004201da6e94$846c34b0$8d449e10$@byosoft.com.cn> (raw)
In-Reply-To: <20240304115545.9485-1-wenxing.hou@intel.com>

Please also need to add gEfiDeviceSignatureDatabaseGuid in MdePkg.dec. 

> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Wenxing Hou
> 发送时间: 2024年3月4日 19:56
> 收件人: devel@edk2.groups.io
> 抄送: Michael D Kinney <michael.d.kinney@intel.com>; Liming Gao
> <gaoliming@byosoft.com.cn>; Zhiguang Liu <zhiguang.liu@intel.com>; Jiewen
> Yao <jiewen.yao@intel.com>
> 主题: [edk2-devel] [PATCH] MdePkg: Add UEFI 2.10 DeviceAuthentication
> 
> According to UEFI 2.10 spec
> 32.8.2 UEFI Device Signature Variable GUID and Variable Name section,
> add signature database for device authentication.
> 
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Signed-off-by: Wenxing Hou <wenxing.hou@intel.com>
> ---
>  MdePkg/Include/Guid/DeviceAuthentication.h | 61
> ++++++++++++++++++++++
>  1 file changed, 61 insertions(+)
>  create mode 100644 MdePkg/Include/Guid/DeviceAuthentication.h
> 
> diff --git a/MdePkg/Include/Guid/DeviceAuthentication.h
> b/MdePkg/Include/Guid/DeviceAuthentication.h
> new file mode 100644
> index 0000000000..65dea4273d
> --- /dev/null
> +++ b/MdePkg/Include/Guid/DeviceAuthentication.h
> @@ -0,0 +1,61 @@
> +/** @file
> 
> +  Guid & data structure used for Device Security.
> 
> +
> 
> +  Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
> 
> +  SPDX-License-Identifier: BSD-2-Clause-Patent
> 
> +
> 
> +**/
> 
> +
> 
> +#ifndef EDKII_DEVICE_AUTHENTICATION_GUID_H_
> 
> +#define EDKII_DEVICE_AUTHENTICATION_GUID_H_
> 
> +
> 
> +/**
> 
> +  This is a signature database for device authentication, instead of
image
> authentication.
> 
> +
> 
> +  The content of the signature database is same as the one in db/dbx. (a
list
> of EFI_SIGNATURE_LIST)
> 
> +**/
> 
> +#define EFI_DEVICE_SIGNATURE_DATABASE_GUID \
> 
> +  {0xb9c2b4f4, 0xbf5f, 0x462d, 0x8a, 0xdf, 0xc5, 0xc7, 0xa, 0xc3, 0x5d,
0xad}
> 
> +#define EFI_DEVICE_SECURITY_DATABASE  L"devdb"
> 
> +
> 
> +extern EFI_GUID  gEfiDeviceSignatureDatabaseGuid;
> 
> +
> 
> +/**
> 
> +  Signature Database:
> 
> +
> 
> +  +---------------------------------------+ <-----------------
> 
> +  | SignatureType (GUID)                  |                  |
> 
> +  +---------------------------------------+                  |
> 
> +  | SignatureListSize (UINT32)            |                  |
> 
> +  +---------------------------------------+                  |
> 
> +  | SignatureHeaderSize (UINT32)          |                  |
> 
> +  +---------------------------------------+                  |
> 
> +  | SignatureSize (UINT32)                |
> |-EFI_SIGNATURE_LIST (1)
> 
> +  +---------------------------------------+                  |
> 
> +  | SignatureHeader (SignatureHeaderSize) |                  |
> 
> +  +---------------------------------------+ <--              |
> 
> +  | SignatureOwner (GUID)                 |   |              |
> 
> +  +---------------------------------------+   |-EFI_SIGNATURE_DATA (1)
> 
> +  | SignatureData (SignatureSize - 16)    |   |              |
> 
> +  +---------------------------------------+ <--              |
> 
> +  | SignatureOwner (GUID)                 |   |              |
> 
> +  +---------------------------------------+   |-EFI_SIGNATURE_DATA (n)
> 
> +  | SignatureData (SignatureSize - 16)    |   |              |
> 
> +  +---------------------------------------+ <-----------------
> 
> +  | SignatureType (GUID)                  |                  |
> 
> +  +---------------------------------------+                  |
> 
> +  | SignatureListSize (UINT32)            |
> |-EFI_SIGNATURE_LIST (n)
> 
> +  +---------------------------------------+                  |
> 
> +  | ...                                   |                  |
> 
> +  +---------------------------------------+ <-----------------
> 
> +
> 
> +  SignatureType := EFI_CERT_SHAxxx_GUID |
> 
> +                   EFI_CERT_RSA2048_GUID |
> 
> +                   EFI_CERT_RSA2048_SHAxxx_GUID |
> 
> +                   EFI_CERT_X509_GUID |
> 
> +                   EFI_CERT_X509_SHAxxx_GUID
> 
> +  (xxx = 256, 384, 512)
> 
> +
> 
> +**/
> 
> +
> 
> +#endif
> 
> --
> 2.26.2.windows.1
> 
> 
> 
> -=-=-=-=-=-=
> Groups.io Links: You receive all messages sent to this group.
> View/Reply Online (#116312):
> https://edk2.groups.io/g/devel/message/116312
> Mute This Topic: https://groups.io/mt/104720232/4905953
> Group Owner: devel+owner@edk2.groups.io
> Unsubscribe: https://edk2.groups.io/g/devel/unsub
> [gaoliming@byosoft.com.cn]
> -=-=-=-=-=-=
> 





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#116346): https://edk2.groups.io/g/devel/message/116346
Mute This Topic: https://groups.io/mt/104735523/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



      reply	other threads:[~2024-03-05  0:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-04 11:55 [edk2-devel] [PATCH] MdePkg: Add UEFI 2.10 DeviceAuthentication Wenxing Hou
2024-03-05  0:31 ` gaoliming via groups.io [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004201da6e94$846c34b0$8d449e10$@byosoft.com.cn' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox