Hi, it seems that the sha256.rs file in TFHE-rs GitHub supports the homomorphic evaluation of SHA-256 with integer type.
Has the functionality of the sha256.rs file been validated?
If so, how can I build it?, and is it faster than SHA256 with a boolean API?
Many thanks!
Hello @Loria_G
Normally both sha256 implementations should work.
To run the example you can use the following command:
RUSTFLAGS="-C target-cpu=native" cargo run --example sha256 --profile rele ase --features=integer -p tfhe
I don’t recall off the top of my head which one was faster, but it should be fairly easy to test. It will likely depend on your target hardware depening on how much parallelization each implementation leverages.
Cheers