Skip to content

Commit a8d3418

Browse files
committed
Nits
1 parent 75dd59b commit a8d3418

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

draft-denis-dprive-dnscrypt.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Key characteristics of the ongoing communication phase:
109109
Definitions for client queries:
110110

111111
- `<dnscrypt-query>`: `<client-magic>` `<client-pk>` `<client-nonce>` `<encrypted-query>`
112-
- `<client-magic>`: a 8 byte identifier for the resolver certificate chosen by the client.
112+
- `<client-magic>`: an 8 byte identifier for the resolver certificate chosen by the client.
113113
- `<client-pk>`: the client's public key, whose length depends on the encryption algorithm defined in the chosen certificate.
114114
- `<client-sk>`: the client's secret key.
115115
- `<resolver-pk>`: the resolver's public key.
@@ -222,7 +222,7 @@ With the knowledge of the chosen certificate and corresponding secret key, along
222222

223223
### Padding For Client Queries Over UDP
224224

225-
Before encryption takes place, queries are padded according to the ISO/IEC 7816-4 standard. Padding begins with a single byte holding the value `0x80`, succeeded by any number of `NUL` bytes.
225+
Before encryption takes place, queries are padded according to the ISO/IEC 7816-4 standard. Padding begins with a single byte holding the value `0x80`, followed by any number of `NUL` bytes.
226226

227227
`<client-query>` `<client-query-pad>` MUST be at least `<min-query-len>` bytes.
228228
In this context, `<client-query>` represents the original client query, while `<client-query-pad>` denotes the added padding.
@@ -233,9 +233,9 @@ Should the client query's length fall short of `<min-query-len>` bytes, the pad
233233

234234
### Client Queries Over UDP
235235

236-
UDP-based client queries need to follow the padding guidelines outlined in section 3.
236+
UDP-based client queries need to follow the padding guidelines outlined in the previous section.
237237

238-
Each UDP packet MUST hold one query, with the complete content comprising the `<dnscrypt-query>` structure specified in section 2.
238+
Each UDP packet MUST hold one query, with the complete content comprising the `<dnscrypt-query>` structure specified in the Protocol Components section.
239239

240240
UDP packets employing the DNSCrypt protocol have the capability to be split into distinct IP packets sharing the same source port.
241241

@@ -256,8 +256,7 @@ The client MAY decrease `<min-query-len>`, but the length MUST remain a multiple
256256

257257
### Padding For Client Queries Over TCP
258258

259-
Queries MUST undergo padding using the ISO/IEC 7816-4 format before being encrypted. The padding starts with a byte valued `0x80` followed by a
260-
variable number of NUL bytes.
259+
Queries MUST undergo padding using the ISO/IEC 7816-4 format before being encrypted. The padding starts with a byte valued `0x80` followed by a variable number of NUL bytes.
261260

262261
The length of `<client-query-pad>` is selected randomly, ranging from 1 to 256 bytes, including the initial byte valued at `0x80`. The total length of `<client-query>` `<client-query-pad>` MUST be a multiple of 64 bytes.
263262

0 commit comments

Comments
 (0)