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

Danny/poseidon2 sponge #743

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Danny/poseidon2 sponge #743

wants to merge 3 commits into from

Conversation

danny-shterman
Copy link
Contributor

Describe the changes

This PR implements Poseidon2 sponge function (in addition to non-sponge that was implemented in the past).

Linked Issues

Resolves #

(optional) CUDA backend branch

cuda-backend-branch: danny/poseidon2_sponge

// tmp_fields = {{dt, in0}, {undef, in1}, {undef, in2}, etc.}
memcpy(tmp_fields, &m_domain_tag, sizeof(S));
for (int hasher_idx = 0; hasher_idx < sponge_nof_hashers; hasher_idx++) {
memcpy(tmp_fields + 1, in_fields, (T - 1) * sizeof(S));
Copy link
Contributor

Choose a reason for hiding this comment

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

you are coping here allot of data. Can you aoide it?

Copy link
Contributor

@mickeyasa mickeyasa left a comment

Choose a reason for hiding this comment

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

comments inside

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.

4 participants