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

Add ternary cryptographic sponges #109

Merged
merged 12 commits into from
Jul 23, 2020

Conversation

thibault-martinez
Copy link
Member

@thibault-martinez thibault-martinez commented Jul 21, 2020

Description of change

Add ternary cryptographic sponges

Links to any relevant issues

#77

How the change has been tested

Added tests.

Change checklist

Tick the boxes that are relevant to your changes, and delete any items that are not.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that new and existing unit tests pass locally with my changes
  • I have updated the CHANGELOG.md, if my changes are significant enough

@thibault-martinez thibault-martinez added wg-crypto Working Group - Crypto c-feature Category - Feature e-high Experience - High p-high Priority - High labels Jul 21, 2020
bee-crypto/src/ternary/hash.rs Outdated Show resolved Hide resolved
bee-crypto/src/ternary/hash.rs Show resolved Hide resolved
}
}

impl<T: Sponge, U: DerefMut<Target = T>> Sponge for U {
Copy link
Contributor

@zesterer zesterer Jul 21, 2020

Choose a reason for hiding this comment

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

Is this necessary? Uses of this impl could just borrow &mut foo and Rust's dereference coercion should do the rest.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is necessary for CurlP27 and CurlP81 that are wrappers of CurlP implementing Deref.

@samuel-rufi samuel-rufi self-requested a review July 21, 2020 14:47
bee-crypto/src/ternary/hash.rs Outdated Show resolved Hide resolved
bee-crypto/src/ternary/sponge/curlp.rs Outdated Show resolved Hide resolved
bee-crypto/src/ternary/sponge/kind.rs Outdated Show resolved Hide resolved
bee-crypto/tests/ternary_hash.rs Outdated Show resolved Hide resolved
zesterer
zesterer previously approved these changes Jul 22, 2020
Alex6323
Alex6323 previously approved these changes Jul 22, 2020
wusyong
wusyong previously approved these changes Jul 23, 2020
samuel-rufi
samuel-rufi previously approved these changes Jul 23, 2020
@samuel-rufi samuel-rufi self-requested a review July 23, 2020 09:14
@thibault-martinez thibault-martinez merged commit 16b3239 into iotaledger:master Jul 23, 2020
@thibault-martinez thibault-martinez deleted the crypto-sponge branch July 23, 2020 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-feature Category - Feature e-high Experience - High p-high Priority - High wg-crypto Working Group - Crypto
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants