File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ There are a number of conventions adhered to throughout this document:
7878 - Elliptic curve: for all computations involving elliptic curves, the Bitcoin
7979 curve is used, as specified in [ ` secp256k1 ` ] [ sec2 ]
8080 - Pseudo-random stream: [ ` ChaCha20 ` ] [ rfc8439 ] is used to generate a
81- pseudo-random byte stream. For its generation, a fixed null-nonce
82- (` 0x0000000000000000 ` ) is used, along with a key derived from a shared
81+ pseudo-random byte stream. For its generation, a fixed 96-bit null-nonce
82+ (` 0x000000000000000000000000 ` ) is used, along with a key derived from a shared
8383 secret and with a ` 0x00 ` -byte stream of the desired output size as the
8484 message.
8585 - The terms _ origin node_ and _ final node_ refer to the initial packet sender
@@ -127,7 +127,7 @@ The pseudo-random byte stream is used to obfuscate the packet at each hop of the
127127path, so that each hop may only recover the address and HMAC of the next hop.
128128The pseudo-random byte stream is generated by encrypting (using ` ChaCha20 ` ) a
129129` 0x00 ` -byte stream, of the required length, which is initialized with a key
130- derived from the shared secret and a zero-nonce (` 0x00000000000000 ` ).
130+ derived from the shared secret and a 96-bit zero-nonce (` 0x000000000000000000000000 ` ).
131131
132132The use of a fixed nonce is safe, since the keys are never reused.
133133
You can’t perform that action at this time.
0 commit comments