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

Bugfix: Add used field to MD5 hash state #12

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

jakobnissen
Copy link
Contributor

@jakobnissen jakobnissen commented Oct 13, 2023

MD5.jl currently uses undocumented and unexported internals of the SHA stdlib. PR #86 to SHA.jl added a new field, used to the SHA states. Since MD5 uses internal SHA functions which now look for this field, MD5 tests began to fail.

This PR adds the needed used field, so MD5 now runs. The real fix is to not rely on SHA internals.

Closes #11

@jw3126
Copy link
Collaborator

jw3126 commented Oct 13, 2023

ugh, looks like we don't have CI on this package 😄 could you add it in this PR also 😅 ?

@jw3126
Copy link
Collaborator

jw3126 commented Oct 13, 2023

Thanks a lot! Could you bump the version?

@jakobnissen
Copy link
Contributor Author

I just bumped the micro version, since changing compat is not a breaking change (anyone using an unsupported version will simply not be given this new version)

MD5.jl currently uses undocumented and unexported internals of the SHA stdlib.
PR #86 to SHA.jl added a new field, `used` to the SHA states. Since MD5 uses
internal SHA functions which now look for this field, MD5 tests began to fail.

This PR adds the needed `used` field, so MD5 now runs. The real fix is to not
rely on SHA internals.
@jw3126 jw3126 merged commit c7927e3 into JuliaCrypto:master Oct 13, 2023
7 checks passed
@jw3126
Copy link
Collaborator

jw3126 commented Oct 13, 2023

awesome thanks a lot @jakobnissen

@jakobnissen jakobnissen deleted the add_used branch October 13, 2023 13:32
@bensetterholm
Copy link

Would it be okay to set the new tagged version of this library with the bugfix as an official release (so that it can be simply installed with add MD5 in the Julia v1.11 package manager)?

@jw3126
Copy link
Collaborator

jw3126 commented Oct 17, 2023

c7927e3#commitcomment-130204864

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

Successfully merging this pull request may close these issues.

MD5 stopped working for Julia 1.11
3 participants