Verify the quote against a RA-TLS public key.
(
self,
ra_pubkey_der: &[u8],
pccs_url: Option<&str>,
)
| 620 | |
| 621 | /// Verify the quote against a RA-TLS public key. |
| 622 | pub async fn verify_with_ra_pubkey( |
| 623 | self, |
| 624 | ra_pubkey_der: &[u8], |
| 625 | pccs_url: Option<&str>, |
| 626 | ) -> Result<VerifiedAttestation> { |
| 627 | let expected_report_data = QuoteContentType::RaTlsCert.to_report_data(ra_pubkey_der); |
| 628 | if self.report_data()? != expected_report_data { |
| 629 | bail!("report data mismatch"); |
| 630 | } |
| 631 | self.verify(pccs_url).await |
| 632 | } |
| 633 | |
| 634 | /// Verify the quote. |
| 635 | pub async fn verify(self, pccs_url: Option<&str>) -> Result<VerifiedAttestation> { |
no test coverage detected