You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let hash = Sha256::digest(&cri.public_key.to_vec()?);if hash.as_slice() != &rpt.reportdata[..hash.as_slice().len()]{returnErr(anyhow!("sgx report data is invalid"));}
only this check is necessary:
if rpt.mrenclave != HASH_OF_SGX_SIGNING_KEY_PROVIDED_BY_CONFIG{returnErr(anyhow!("untrusted enarx runtime"));}
The other fields are mostly checked by the SGX firmware already.
Maybe these could be checked also, if they >= a configured value.
if rpt.cpusvn != [0u8;16]{returnErr(anyhow!("untrusted cpu"));}
if rpt.enclave_security_version() < u16::MAX{returnErr(anyhow!("untrusted enclave"));}
No description provided.
The text was updated successfully, but these errors were encountered: