What is Nostr?
Elichai Turkel [ARCHIVE] /
npub1yhaโ€ฆangm
2023-06-07 18:18:42

Elichai Turkel [ARCHIVE] on Nostr: ๐Ÿ“… Original date posted:2019-06-16 ๐Ÿ“ Original message:Hi everyone, About the ...

๐Ÿ“… Original date posted:2019-06-16
๐Ÿ“ Original message:Hi everyone,
About the nonce being 64bit. (rfc7539 changed it to 96bit, which djb later
calls xchacha)

You suggest that we use the "message sequence number" as the nonce for
Chacha20, Is this number randomly generate or is this a counter?
And could it be reseted without rekeying?

If it is randomly generated then 64bit isn't secure enough. And we should
either move to the chacha20 from RFC7539 which has 96bit nonce and 32bit
counter or increment it manually every time.

If it's simply a counter then 64bit nonce should be fine :)

Thanks,
Elichai.

--
PGP: 5607C93B5F86650C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20190616/84c36142/attachment.html>;
Author Public Key
npub1yhah9d8m47mkm00dy2ngukyw6gqxfemvvdj7nyx6hh2pzwhzf35s0langm