Re: [push-api] Message encryption (#130)

> +      <ol>
> +        <li>Let <var>map</var> be an empty map.
> +        </li>
> +        <li>Add an entry to <var>map</var> whose key name is <code>endpoint</code> and whose value
> +        is the result of converting the <code>endpoint</code> attribute of the
> +        <a><code>PushSubscription</code></a> to a serialized value.
> +        </li>
> +        <li>Let <var>keys</var> be an empty map.
> +        </li>
> +        <li>For each identifier <var>i</var> corresponding to keys in internal slots on the
> +        <a><code>PushSubscription</code></a>, ordered by the name of the key:
> +          <ol>
> +            <li>Add an entry to <var>keys</var> whose key name is the name of the key and whose
> +            value is an <code>ArrayBuffer</code> containing the defined serialization of the public
> +            key (for an asymmetric key pair) or the key (for a symmetric key).
> +            </li>

What does this mean in practice? Given key `K` which is 32 octets of binary data, could you give a JSON example of the output you expect to retrieve?

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/pull/130/files#r37866590

Received on Tuesday, 25 August 2015 13:51:20 UTC