Struct oqs::kem::Ciphertext
source · pub struct Ciphertext { /* private fields */ }
Expand description
New owned buffer
Construct the reference version of this type through the algorithm API functions.
Optional support for serde
if that feature is enabled.
Implementations§
Trait Implementations§
source§impl AsRef<[u8]> for Ciphertext
impl AsRef<[u8]> for Ciphertext
source§impl Clone for Ciphertext
impl Clone for Ciphertext
source§fn clone(&self) -> Ciphertext
fn clone(&self) -> Ciphertext
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 Ciphertext
impl Debug for Ciphertext
source§impl<'de> Deserialize<'de> for Ciphertext
impl<'de> Deserialize<'de> for Ciphertext
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a Ciphertext> for CiphertextRef<'a>
impl<'a> From<&'a Ciphertext> for CiphertextRef<'a>
source§fn from(buf: &'a Ciphertext) -> CiphertextRef<'a>
fn from(buf: &'a Ciphertext) -> CiphertextRef<'a>
Converts to this type from the input type.
source§impl PartialEq<Ciphertext> for Ciphertext
impl PartialEq<Ciphertext> for Ciphertext
source§fn eq(&self, other: &Ciphertext) -> bool
fn eq(&self, other: &Ciphertext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Ciphertext
impl Serialize for Ciphertext
impl Eq for Ciphertext
impl StructuralEq for Ciphertext
impl StructuralPartialEq for Ciphertext
Auto Trait Implementations§
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