Commit a6ba4bc4 authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

White paper: Fix capitalization of headers in HTTP signatures.

parent a7cf6159
......@@ -398,7 +398,7 @@ X-Ouinet-Data-Size: 12
The injector server would create the following complete cache entry signature:
```
keyId="ed25519=<key>",algorithm="hs2019",created=1584748800, headers="(response-status) (created) x-Ouinet-version x-Ouinet-uri x-Ouinet-injection date content-type digest x-Ouinet-data-size",signature="<signature-base64>"
keyId="ed25519=<key>",algorithm="hs2019",created=1584748800, headers="(response-status) (created) x-ouinet-version x-ouinet-uri x-ouinet-injection date content-type digest x-ouinet-data-size",signature="<signature-base64>"
```
In this signature, `<key>` stands for the public key associated with the `KEY` private key, and `<signature-base64>` is the base64 encoding of the Ed25519 signature of the following string:
......@@ -406,13 +406,13 @@ In this signature, `<key>` stands for the public key associated with the `KEY` p
```
(response-status): 200
(created): 1584748800
x-Ouinet-version: 4
x-Ouinet-uri: https://example.com/hello
x-Ouinet-injection: id=qwertyuiop-12345,ts=1584748800
x-ouinet-version: 4
x-ouinet-uri: https://example.com/hello
x-ouinet-injection: id=qwertyuiop-12345,ts=1584748800
date: Sat, 21 Mar 2020 00:00:00 GMT
content-type: text/plain
digest: SHA-256=wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=
x-Ouinet-data-size: 12
x-ouinet-data-size: 12
```
Lines in this string are separated by newline `\n` characters. The string does not begin with or end in a newline character.
......@@ -421,7 +421,7 @@ The injector server might choose not to create a signature stream for this cache
* `block_size`: `5`
* `injection-id`: `qwertyuiop-12345`
* `header-signature`: `keyId="ed25519=<key>",algorithm="hs2019",created=1584748800, headers="(response-status) (created) x-Ouinet-version x-Ouinet-uri x-Ouinet-injection date content-type",signature="<header-signature-base64>"`
* `header-signature`: `keyId="ed25519=<key>",algorithm="hs2019",created=1584748800, headers="(response-status) (created) x-ouinet-version x-ouinet-uri x-ouinet-injection date content-type",signature="<header-signature-base64>"`
* `block(0)`: `Hello`
* `block(1)`: ` worl`
* `block(2)`: `d!`
......@@ -439,9 +439,9 @@ In the computation of `header-signature` in the above, `<key>` stands for the pu
```
(response-status): 200
(created): 1584748800
x-Ouinet-version: 4
x-Ouinet-uri: https://example.com/hello
x-Ouinet-injection: id=qwertyuiop-12345,ts=1584748800
x-ouinet-version: 4
x-ouinet-uri: https://example.com/hello
x-ouinet-injection: id=qwertyuiop-12345,ts=1584748800
date: Sat, 21 Mar 2020 00:00:00 GMT
content-type: text/plain
```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment