SecurityPkg/TpmCommandLib: Add Tpm2ReadPublic.
Cc: Chao Zhang <chao.b.zhang@intel.com> Cc: Long Qin <qin.long@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yao Jiewen <jiewen.yao@intel.com> Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
This library is used by other modules to send TPM2 command.
|
||||
|
||||
Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved. <BR>
|
||||
Copyright (c) 2013 - 2017, Intel Corporation. All rights reserved. <BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -959,6 +959,26 @@ Tpm2PolicyGetDigest (
|
||||
OUT TPM2B_DIGEST *PolicyHash
|
||||
);
|
||||
|
||||
/**
|
||||
This command allows access to the public area of a loaded object.
|
||||
|
||||
@param[in] ObjectHandle TPM handle of an object
|
||||
@param[out] OutPublic Structure containing the public area of an object
|
||||
@param[out] Name Name of the object
|
||||
@param[out] QualifiedName The Qualified Name of the object
|
||||
|
||||
@retval EFI_SUCCESS Operation completed successfully.
|
||||
@retval EFI_DEVICE_ERROR Unexpected device behavior.
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
Tpm2ReadPublic (
|
||||
IN TPMI_DH_OBJECT ObjectHandle,
|
||||
OUT TPM2B_PUBLIC *OutPublic,
|
||||
OUT TPM2B_NAME *Name,
|
||||
OUT TPM2B_NAME *QualifiedName
|
||||
);
|
||||
|
||||
//
|
||||
// Help function
|
||||
//
|
||||
|
Reference in New Issue
Block a user