pub struct Ciphertext { /* private fields */ }
Expand description
A flow encryption ciphertext.
Implementations§
Source§impl Ciphertext
impl Ciphertext
Sourcepub async fn decrypt(
&self,
shares: Vec<DecryptionShare<Verified>>,
table: &dyn DecryptionTable,
) -> Result<Value>
pub async fn decrypt( &self, shares: Vec<DecryptionShare<Verified>>, table: &dyn DecryptionTable, ) -> Result<Value>
Use the provided DecryptionShare
s to decrypt the ciphertext,
recovering the value with the given DecryptionTable
.
§Errors
InsufficientSharesError
if insufficiently many decryption shares were supplied;TableLookupError
if the decrypted value was out of range for thetable
;- Underlying I/O errors from the
DecryptionTable
implementation.
Trait Implementations§
Source§impl Add<&Ciphertext> for &Ciphertext
impl Add<&Ciphertext> for &Ciphertext
Source§type Output = Ciphertext
type Output = Ciphertext
The resulting type after applying the
+
operator.Source§impl AddAssign<&Ciphertext> for Ciphertext
impl AddAssign<&Ciphertext> for Ciphertext
Source§fn add_assign(&mut self, rhs: &Ciphertext)
fn add_assign(&mut self, rhs: &Ciphertext)
Performs the
+=
operation. Read moreSource§impl Clone for Ciphertext
impl Clone for Ciphertext
Source§fn clone(&self) -> Ciphertext
fn clone(&self) -> Ciphertext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Ciphertext
impl Debug for Ciphertext
Source§impl Default for Ciphertext
impl Default for Ciphertext
Source§fn default() -> Ciphertext
fn default() -> Ciphertext
Returns the “default value” for a type. Read more
impl Copy for Ciphertext
Auto Trait Implementations§
impl Freeze for Ciphertext
impl RefUnwindSafe for Ciphertext
impl Send for Ciphertext
impl Sync for Ciphertext
impl Unpin for Ciphertext
impl UnwindSafe for Ciphertext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more