diff --git a/src/python/cctrusted_vm/cvm.py b/src/python/cctrusted_vm/cvm.py index 076039d..6b45134 100644 --- a/src/python/cctrusted_vm/cvm.py +++ b/src/python/cctrusted_vm/cvm.py @@ -120,9 +120,9 @@ def process_eventlog(self) -> bool: @abstractmethod def get_cc_report(self, nonce: bytearray, data: bytearray, extraArgs) -> CcReport: - """Get the quote for given nonce and data. + """Get the CcReport (i.e. quote) for given nonce and data. - The quote is signing of attestation data (IMR values or hashes of IMR + The CcReport is signing of attestation data (IMR values or hashes of IMR values), made by a trusted foundation (TPM) using a key trusted by the verifier. @@ -134,7 +134,7 @@ def get_cc_report(self, nonce: bytearray, data: bytearray, extraArgs) -> CcRepor extraArgs: for TPM, it will be given list of IMR/PCRs Returns: - The ``Quote`` object. + The ``CcReport`` object. """ raise NotImplementedError("Should be implemented by inherited class") @@ -379,7 +379,7 @@ def process_eventlog(self) -> bool: def get_cc_report(self, nonce: bytearray, data: bytearray, extraArgs) -> CcReport: - """Get quote. + """Get CcReport (i.e. TD Quote in the context of TDX). This depends on Quote Generation Service. Please reference "Whitepaper: Linux* Stacks for IntelĀ® Trust Domain Extensions (4.3 Attestation)" for @@ -396,7 +396,7 @@ def get_cc_report(self, nonce: bytearray, data: bytearray, extraArgs) -> CcRepor extraArgs: for TPM, it will be given list of IMR/PCRs Returns: - The ``Quote`` object. + The ``CcReport`` object. Return None if it fails. Raises: binascii.Error when the parameter "nonce" or "data" is not base64 encoded. diff --git a/src/python/cctrusted_vm/sdk.py b/src/python/cctrusted_vm/sdk.py index 947eb48..dc224b6 100644 --- a/src/python/cctrusted_vm/sdk.py +++ b/src/python/cctrusted_vm/sdk.py @@ -98,9 +98,9 @@ def get_cc_report( data: bytearray = None, extraArgs = None ) -> CcReport: - """Get the quote for given nonce and data. + """Get the CcReport (i.e. quote) for given nonce and data. - The quote is signing of attestation data (IMR values or hashes of IMR + The CcReport is signing of attestation data (IMR values or hashes of IMR values), made by a trusted foundation (TPM) using a key trusted by the verifier. @@ -112,7 +112,7 @@ def get_cc_report( extraArgs: for TPM, it will be given list of IMR/PCRs Returns: - The ``Quote`` object. + The ``CcReport`` object. Return None if it fails. """ return self._cvm.get_cc_report(nonce, data, extraArgs)