mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
cryptomsg: wording fix with update to latest BOLT.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
f7cc079221
commit
35909ba94a
@ -229,7 +229,9 @@ struct io_plan *peer_write_message(struct io_conn *conn,
|
||||
*
|
||||
* * Encrypt `l` using `ChaChaPoly-1305`, `sn`, and `sk` to obtain `lc`
|
||||
* (`18-bytes`)
|
||||
* * The nonce `sn` is encoded as a 96-bit big-endian number.
|
||||
* * The nonce `sn` is encoded as a 96-bit little-endian number.
|
||||
* As our decoded nonces a 64-bit, we encode the 96-bit nonce as
|
||||
* follows: 32-bits of leading zeroes followed by a 64-bit value.
|
||||
* * The nonce `sn` MUST be incremented after this step.
|
||||
* * A zero-length byte slice is to be passed as the AD
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user