diff --git a/docs/spec.bs b/docs/spec.bs index 6547995..1a490b7 100644 --- a/docs/spec.bs +++ b/docs/spec.bs @@ -11,6 +11,20 @@ Markup Shorthands: markdown yes, css no
spec:infra; type:dfn; text:user agent +spec:url; type:dfn; text:origin ++ +
+{ + "SHA-256": { + "href":"https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf", + "title":"Secure Hash Standard (SHS) (FIPS PUB 180-4)", + "authors": ["National Institute of Standards and Technology"], + "publisher":"NIST", + "id":"FIPS 180-4", + "date": "August 2015" + } +}# Introduction # {#introduction} @@ -140,8 +154,9 @@ The [=attester verdict=] consists of: 1. Let |promise| be [=a new promise=] 1. Run the following steps [=in parallel=]: - 1. Set |attesterVerdict| to a new [=attester verdict=] from the |attesterConnection| using the |contentBinding|. If this fails then: - 1. [=Reject=] |promise| with a TODO [=Exception=] + 1. Let |hashedCB| be the digest [[SHA-256]](|contentBinding| + ";" + [=origin=]) + 1. Set |attesterVerdict| to a new [=attester verdict=] from the |attesterConnection| using the |hashedCB|. If this fails then: + 1. [=Reject=] |promise| with a "{{UnknownError}}" {{DOMException}} 1. Abort these steps 1. Let |environmentIntegrity| be a new {{EnvironmentIntegrity}} with: - {{EnvironmentIntegrity/attestationToken}} set to the [=attester verdict/raw response=] in the |attesterVerdict|