Skip to content

a fully homomorphic sha256 circuit

License

Notifications You must be signed in to change notification settings

jumbojets/sha256-tfhe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a fully homomorphic sha256 circuit using tfhe-rs

usage

use sha256_tfhe::{decrypt_digest, encrypt_input, sha256_tfhe};
let (client_key, server_key) = tfhe::boolean::gen_keys();
let input = b"hello world".to_vec();
let input_ct = encrypt_input(input, &client_key);
let digest_ct = sha256_tfhe(&input_ct, &server_key);
let digest = decrypt_digest(&digest_ct, &client_key);
println!("H(x) = {digest:?}");

About

a fully homomorphic sha256 circuit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages