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 AArch64 implementation for 4-way parallel Keccak #36

Open
1 of 2 tasks
hanno-becker opened this issue May 10, 2024 · 4 comments
Open
1 of 2 tasks

Add AArch64 implementation for 4-way parallel Keccak #36

hanno-becker opened this issue May 10, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@hanno-becker
Copy link
Contributor

hanno-becker commented May 10, 2024

Partly implements: #33
Depends on: #35

Acceptance criteria:

@mkannwischer
Copy link
Contributor

I've started working on a cleaned up version of https://eprint.iacr.org/2022/1243 here: slothy-optimizer/slothy#65.
I'll likely start by adding a Keccakx1 implementation on the scalar unit first.
Then add hybrid implementations w/ and w/o SHA-3 instructions.

I think these 3 variants (potentially with different microarchitectural optimizations), should give us good performance on all target platforms. This will take a while though.

Formal verification could be done by equivalence checking using cryptoline: https://github.com/fmlab-iis/cryptoline/blob/master/examples/XKCP/KeccakP-1600/ARMv8A/KeccakP1600_Permute_24rounds.cl (which in turn uses equivalence checking to the Keccak's teams C reference implementation). A brief chat about this with the cryptoline developers suggests this is going to be easy.

@mkannwischer mkannwischer self-assigned this Jul 19, 2024
@hanno-becker
Copy link
Contributor Author

Formal verification could be done by equivalence checking using cryptoline: https://github.com/fmlab-iis/cryptoline/blob/master/examples/XKCP/KeccakP-1600/ARMv8A/KeccakP1600_Permute_24rounds.cl (which in turn uses equivalence checking to the Keccak's teams C reference implementation). A brief chat about this with the cryptoline developers suggests this is going to be easy.

Is this still your impression @mkannwischer ?

@mkannwischer
Copy link
Contributor

Yes, this should not be hard and the CL developers say they have done this for Neon implementations both w/ and w/o SHA3 instructions before.
However, it is likely still going to be a bit of work. I'd very much prefer to have everything automated so we can run it regularly (maybe even in CI).

@hanno-becker
Copy link
Contributor Author

Yes, this should not be hard and the CL developers say they have done this for Neon implementations both w/ and w/o SHA3 instructions before.
However, it is likely still going to be a bit of work. I'd very much prefer to have everything automated so we can run it regularly (maybe even in CI).

Ok, sound promising though. And regarding automation: One step a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants