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

New padding rule for RPX #236

Merged
merged 8 commits into from
Jan 17, 2024
Merged

New padding rule for RPX #236

merged 8 commits into from
Jan 17, 2024

Conversation

Al-Kindi-0
Copy link
Collaborator

Describe your changes

Addresses #203
I have kept the old padding rule when hashing bytes so as to avoid the security degradation. On the other hand, there is also a case for uniformity so maybe we should also change it to the new padding rule.

Checklist before requesting a review

  • Repo forked and branch created from next according to naming convention.
  • Commit messages and codestyle follow conventions.
  • Relevant issues are linked in the PR description.
  • Tests added for new functionality.
  • Documentation/comments updated according to changes.

@Al-Kindi-0 Al-Kindi-0 requested a review from bobbinth December 18, 2023 10:45
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you! I left a couple of comments inline.

I have kept the old padding rule when hashing bytes so as to avoid the security degradation. On the other hand, there is also a case for uniformity so maybe we should also change it to the new padding rule.

I'm actually not sure if the old padding rule works as intended here - but if it does, we should be able to modify it in the same way and security would go down by the same 3 bits (i.e., to 125 bits), right?

src/hash/rescue/rpo/mod.rs Show resolved Hide resolved
src/hash/rescue/rpx/mod.rs Show resolved Hide resolved
@Al-Kindi-0 Al-Kindi-0 force-pushed the al-new-padding-rule branch from 76a82ea to 4c27ebe Compare January 5, 2024 06:40
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you! I left a couple of small comments inline.

src/hash/rescue/rpo/mod.rs Outdated Show resolved Hide resolved
src/hash/rescue/rpx/mod.rs Outdated Show resolved Hide resolved
src/hash/rescue/rpx/mod.rs Outdated Show resolved Hide resolved
@bobbinth bobbinth changed the title New padding rule for RPO/RPX New padding rule for RPX Jan 5, 2024
@bobbinth bobbinth linked an issue Jan 17, 2024 that may be closed by this pull request
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good! Thank you!

@bobbinth bobbinth linked an issue Jan 17, 2024 that may be closed by this pull request
@bobbinth bobbinth merged commit 175142a into next Jan 17, 2024
9 checks passed
@bobbinth bobbinth deleted the al-new-padding-rule branch January 17, 2024 22:14
@Al-Kindi-0 Al-Kindi-0 restored the al-new-padding-rule branch January 26, 2024 09:21
bobbinth pushed a commit that referenced this pull request Feb 14, 2024
* feat: new padding rule for RPX
* fix: documentation on security
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.

Consider changing padding rule for RPX Set correct collision resistance for Rpo256
2 participants