ingonyama-zk / icicle

A hardware acceleration library for compute intensive cryptography :ice_cube:
https://dev.ingonyama.com/icicle/overview
MIT License
329 stars 97 forks source link

Add Keccak hash function #435

Closed ChickenLover closed 6 months ago

ChickenLover commented 6 months ago

This PR adds support for Keccak-256 and Keccak-512. It only adds them in c++. There is no way of adding rust or golang wrappers rn as it requires having an icicle-common create / mod

krakhit commented 6 months ago

For correctness can you add a test that generate test vectors from https://keccak.team/2013/yes_this_is_keccak.html and check that it produces the same result as the standard implementation