Skip to content

Commit cfe977c

Browse files
committed
Nits
1 parent 9ceda19 commit cfe977c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

draft-denis-dprive-dnscrypt.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ Finally, the output of the Poly1305 function is prepended to the ciphertext:
441441

442442
- `<k>`: encryption key
443443
- `<m>`: message to encrypt
444-
- `XChaCha20_DJB-Poly1305(<k>, <m>)`: `Poly1305(XChaCha20_DJB(<k>, <m>)) || XChaCha20_DJB(<k>, <m>)`
444+
- `<ct>`: `XChaCha20_DJB(<k>, <m>)`
445+
- `XChaCha20_DJB-Poly1305(<k>, <m>)`: `Poly1305(<ct>) || <ct>`
445446

446447

447448
## The Box-XChaChaPoly Algorithm
@@ -452,8 +453,8 @@ The Box-XChaChaPoly algorithm combines the key exchange mechanism X25519 defined
452453
- `<m>`: message to encrypt
453454
- `<pk>`: recipent's public key
454455
- `<sk>`: sender's secret key
455-
- `sk`: `HChaCha20(X25519(<pk>, <sk>))`
456-
- `Box-XChaChaPoly(pk, sk, m)`: `XChaCha20_DJB-Poly1305(<sk>, <m>)`
456+
- `<sk'>`: `HChaCha20(X25519(<pk>, <sk>))`
457+
- `Box-XChaChaPoly(pk, sk, m)`: `XChaCha20_DJB-Poly1305(<sk'>, <m>)`
457458

458459

459460
--- back

0 commit comments

Comments
 (0)