-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Megolm doc: nitpicking question about ratchet #15
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I do not fully understand the following sentence in the Megolm doc.
If I understood correctly the way the ratchet advances, the worst case scenario would be to advance from
i=0
toi=2^32 - 1
, assuming thati
is a 32-bit counter that cannot overflow (can it?).i=0
toi=2^32 - 2^24
i=2^32 - 2^24
toi=2^32 - 2^16
i=2^32 - 2^16
toi=2^32 - 2^8
i=2^32 - 2^8
toi=2^32 - 1
That makes 1020 hash computations, not 1023. Am I wrong?
Not that it's particularly important, but I am afraid to have an erroneous understanding of the whole thing.
The text was updated successfully, but these errors were encountered: