diff --git a/index.html b/index.html index 077b803..93a1b73 100644 --- a/index.html +++ b/index.html @@ -1500,18 +1500,19 @@

  • If |name| is {{PushEncryptionKeyName/"p256dh"}}:
      -
    1. Set the contents of |key| to the serialized value of the public key from - [=this=]'s [=P-256 ECDH key pair=], using the uncompressed format defined in - [[ANSI-X9-62]] Annex A (that is, a 65 octet sequence that starts with a 0x04 octet), as - [[RFC8291]] specifies. +
    2. Set the contents of |key| to the serialized value of the public key from [=this=]'s + [=P-256 ECDH key pair=], using the uncompressed format defined in [[ANSI-X9-62]] Annex + A (that is, a 65 octet sequence that starts with a 0x04 octet), as [[RFC8291]] + specifies.
  • Otherwise:
      -
    1. [=/Assert=]: |name| is {{PushEncryptionKeyName/"auth"}}
    2. -
    3. Set the contents of |key| to a copy of the value from [=this=]'s - [=authentication secret=]. +
    4. [=/Assert=]: |name| is {{PushEncryptionKeyName/"auth"}} +
    5. +
    6. Set the contents of |key| to a copy of the value from [=this=]'s [=authentication + secret=].
  • @@ -1561,11 +1562,11 @@

  • Let |keys:PushSubscriptionKeys| be a new {{PushSubscriptionKeys}} dictionary.
  • -
  • Set |keys|["p256dh"] to the URL-safe base64 encoding without padding [[RFC4648]] of - the value as returned by {{PushSubscription/getKey("p256dh")}}, as a {{USVString}}. +
  • Set |keys|["p256dh"] to the URL-safe base64 encoding without padding [[RFC4648]] of the + value as returned by {{PushSubscription/getKey("p256dh")}}, as a {{USVString}}.
  • -
  • Set |keys|["auth"] to the URL-safe base64 encoding without padding [[RFC4648]] of - the value as returned by {{PushSubscription/getKey("auth")}}, as a {{USVString}}. +
  • Set |keys|["auth"] to the URL-safe base64 encoding without padding [[RFC4648]] of the + value as returned by {{PushSubscription/getKey("auth")}}, as a {{USVString}}.
  • Set |json|["keys"] to |keys|.