pub struct Ciphertext { /* private fields */ }Expand description
A FrodoKEM ciphertext key
Implementations§
Source§impl Ciphertext
impl Ciphertext
Sourcepub fn from_bytes<B: AsRef<[u8]>>(
algorithm: Algorithm,
value: B,
) -> FrodoResult<Self>
pub fn from_bytes<B: AsRef<[u8]>>( algorithm: Algorithm, value: B, ) -> FrodoResult<Self>
Convert a slice of bytes into a Ciphertext according to the specified Algorithm.
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 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 ConstantTimeEq for Ciphertext
impl ConstantTimeEq for Ciphertext
Source§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
Source§impl<'de> Deserialize<'de> for Ciphertext
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Ciphertext
Available on crate feature
serde only.Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Ciphertext
impl PartialEq for Ciphertext
Source§impl Serialize for Ciphertext
Available on crate feature serde only.
impl Serialize for Ciphertext
Available on crate feature
serde only.impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)