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:?}");
-
Notifications
You must be signed in to change notification settings - Fork 0
a fully homomorphic sha256 circuit
License
jumbojets/sha256-tfhe
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
a fully homomorphic sha256 circuit
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published