pub enum KeyMaterial {
Unknown(Vec<u8>),
Ecdsa(EcdsaRawPublicKey),
Rsa(RsaRawPublicKey),
Spx(SpxRawPublicKey),
}
Expand description
Low-level key material (ie: bit representation).
Variants§
Implementations§
Source§impl KeyMaterial
impl KeyMaterial
pub fn len(&self) -> usize
pub fn kind(&self) -> OwnershipKeyAlg
pub fn read_length( src: &mut impl Read, kind: OwnershipKeyAlg, buflen: usize, ) -> Result<Self>
pub fn write_length(&self, dest: &mut impl Write, buflen: usize) -> Result<()>
Trait Implementations§
Source§impl Debug for KeyMaterial
impl Debug for KeyMaterial
Source§impl Default for KeyMaterial
impl Default for KeyMaterial
Source§impl<'de> Deserialize<'de> for KeyMaterial
impl<'de> Deserialize<'de> for KeyMaterial
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
Auto Trait Implementations§
impl Freeze for KeyMaterial
impl RefUnwindSafe for KeyMaterial
impl Send for KeyMaterial
impl Sync for KeyMaterial
impl Unpin for KeyMaterial
impl UnwindSafe for KeyMaterial
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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