Struct mc_oblivious_aes_gcm::CtDecryptResult
source · pub struct CtDecryptResult(pub Choice);
Expand description
A new-type wrapper around choice with the #[must_use] annotation that Result has. This wraps the value Choice::from(true) when decryption succeeded, and Choice::from(false) otherwise.
Tuple Fields§
§0: Choice
Trait Implementations§
source§impl AsRef<Choice> for CtDecryptResult
impl AsRef<Choice> for CtDecryptResult
source§impl Clone for CtDecryptResult
impl Clone for CtDecryptResult
source§fn clone(&self) -> CtDecryptResult
fn clone(&self) -> CtDecryptResult
Returns a copy 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 CtDecryptResult
impl Debug for CtDecryptResult
source§impl From<Choice> for CtDecryptResult
impl From<Choice> for CtDecryptResult
source§impl From<CtDecryptResult> for Choice
impl From<CtDecryptResult> for Choice
source§fn from(src: CtDecryptResult) -> Choice
fn from(src: CtDecryptResult) -> Choice
Converts to this type from the input type.
source§impl From<CtDecryptResult> for bool
impl From<CtDecryptResult> for bool
source§fn from(src: CtDecryptResult) -> bool
fn from(src: CtDecryptResult) -> bool
Converts to this type from the input type.