pub struct HybridCiphertext {
pub classical_pk: [u8; 32],
pub ml_kem_ct: Vec<u8>,
}Available on crate feature
std only.Fields§
§classical_pk: [u8; 32]Sender’s ephemeral classical public key. Encoding matches
HybridKeyPackage::classical_pk.
ml_kem_ct: Vec<u8>ML-KEM-768 ciphertext bytes (FIPS-203 encoded).
Trait Implementations§
Source§impl BorshDeserialize for HybridCiphertext
impl BorshDeserialize for HybridCiphertext
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for HybridCiphertext
impl BorshSerialize for HybridCiphertext
Source§impl Clone for HybridCiphertext
impl Clone for HybridCiphertext
Source§fn clone(&self) -> HybridCiphertext
fn clone(&self) -> HybridCiphertext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HybridCiphertext
impl RefUnwindSafe for HybridCiphertext
impl Send for HybridCiphertext
impl Sync for HybridCiphertext
impl Unpin for HybridCiphertext
impl UnsafeUnpin for HybridCiphertext
impl UnwindSafe for HybridCiphertext
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