mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
wip on gadget product
This commit is contained in:
@@ -48,6 +48,10 @@ impl Ciphertext {
|
||||
self.0.log_scale
|
||||
}
|
||||
|
||||
pub fn zero(&mut self){
|
||||
self.0.zero()
|
||||
}
|
||||
|
||||
pub fn as_plaintext(&self) -> Plaintext {
|
||||
unsafe { Plaintext(std::ptr::read(&self.0)) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user