pub struct KeyPair {
pub kem_id: u16,
pub ciphersuite: CiphersuiteId,
pub pk: SensitiveBytes,
pub sk: SensitiveBytes,
}
Fields§
§kem_id: u16
§ciphersuite: CiphersuiteId
§pk: SensitiveBytes
§sk: SensitiveBytes
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyPair
impl<'de> Deserialize<'de> for KeyPair
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 From<KeyPair> for HpkeKeyPair
impl From<KeyPair> for HpkeKeyPair
Source§impl From<KeyPair> for KeyPackageKeyPair
impl From<KeyPair> for KeyPackageKeyPair
Source§impl From<KeyPair> for SignatureKeyPair
impl From<KeyPair> for SignatureKeyPair
impl Eq for KeyPair
impl StructuralPartialEq for KeyPair
Auto Trait Implementations§
impl Freeze for KeyPair
impl RefUnwindSafe for KeyPair
impl Send for KeyPair
impl Sync for KeyPair
impl Unpin for KeyPair
impl UnwindSafe for KeyPair
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