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

fix: Do not remove trailing zeroes from MD5 checksums #45

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

eredwine
Copy link
Contributor

@eredwine eredwine commented Oct 6, 2023

*Issue #44

Description of changes:
Updated package.go to not trim any bytes from the Data bytes slice for the RPMTAG_SIGMD5 tag. The RPMTAG_SIGMD5 field is always 16 bytes in size because that's the size of an MD5 checksum.

Added a new test case to test that an MD5 checksum with trailing zeroes is handled correctly. Fixed existing test cases to make sure that MD5 checksums are always 16 bytes.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Signed-off-by: Erick Redwine <eredwine@gmail.com>
@knqyf263 knqyf263 merged commit ac49267 into knqyf263:master Oct 8, 2023
1 check passed
@knqyf263
Copy link
Owner

knqyf263 commented Oct 8, 2023

thx

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.

2 participants