Module attestation

Module attestation 

Source
Expand description

TDX attestion related shared types and functions

Structs§

QuoteInputData
Input data to be included in a TDX attestation

Enums§

QuoteContext
An indicator as to the context in which a quote is intended to be used
VerifyQuoteError
An error when verifying a quote

Constants§

MEASUREMENT_VALUE_MOCK_QUOTE
The acceptable TDX measurement value for non-production chainspecs. This is the measurement given in mock quotes. Mock quotes have all zeros for each of the 5 48 bit measurement registers. The overall measurement is the Blake2b hash of these values. So this is the Blake2b hash of 5 * 48 zero bytes.

Traits§

AttestationHandler
A trait for types which can handle attestation requests.

Functions§

compute_quote_measurement
Create a measurement value by hashing together all measurement registers from quote data
verify_pck_certificate_chain
A mock version of verifying the PCK certificate chain. When generating mock quotes, we just put the encoded PCK in place of the certificate chain so this function just decodes it, checks it was used to sign the quote, and returns it