Skip to content
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

About the 'MD5Update()' #2

Open
diverger opened this issue Apr 3, 2022 · 0 comments
Open

About the 'MD5Update()' #2

diverger opened this issue Apr 3, 2022 · 0 comments

Comments

@diverger
Copy link

diverger commented Apr 3, 2022

Hi, I'm not understand one line in 'MD5Update()' function:

if ((ctx->lo = (saved_lo + size) & 0x1fffffff) < saved_lo)

I compared this line with some others implement, but can't figure out how it works. The 'size' is in bytes right? And the 'saved_lo' is the lower half of the bits counter, right?

Then why here we add a bits counter to a bytes counter?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant