phantom-zone/src/bool/sp_api.rs
src/bool/sp_api.rsRaw
1mod impl_enc_dec {
2 use crate::{Decryptor, Encryptor};
3
4 use super::super::keys::SinglePartyClientKey;
5
6 impl<K> Encryptor<bool, Vec<u64>> for K
7 where
8 K: SinglePartyClientKey,
9 {
10 fn encrypt(&self, m: &bool) -> Vec<u64> {
11 todo!()
12 // BoolEvaluator::with_local(|e| e.sk_encrypt(*m, self))
13 }
14 }
15
16 impl<K> Decryptor<bool, Vec<u64>> for K
17 where
18 K: SinglePartyClientKey,
19 {
20 fn decrypt(&self, c: &Vec<u64>) -> bool {
21 todo!()
22 // BoolEvaluator::with_local(|e| e.sk_decrypt(c, self))
23 }
24 }
25}