pub struct VarLenPrivateKey<'a> { /* private fields */ }Expand description
An RSA Private Key backed by slices. Use if the length is not known at compile time.
Implementations§
Source§impl<'a> VarLenPrivateKey<'a>
impl<'a> VarLenPrivateKey<'a>
Sourcepub fn from_components(n: &'a [u8], d: &'a [u8]) -> Result<Self, Error>
pub fn from_components(n: &'a [u8], d: &'a [u8]) -> Result<Self, Error>
Constructor for the private key based on n and d.
Sourcepub fn pk(&self) -> &VarLenPublicKey<'_>
pub fn pk(&self) -> &VarLenPublicKey<'_>
Returns the public key of the private key.
Trait Implementations§
Source§impl Debug for VarLenPrivateKey<'_>
impl Debug for VarLenPrivateKey<'_>
Source§impl<'a> From<&'a PrivateKey<1024>> for VarLenPrivateKey<'a>
impl<'a> From<&'a PrivateKey<1024>> for VarLenPrivateKey<'a>
Source§fn from(value: &'a PrivateKey<1024>) -> Self
fn from(value: &'a PrivateKey<1024>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a PrivateKey<256>> for VarLenPrivateKey<'a>
impl<'a> From<&'a PrivateKey<256>> for VarLenPrivateKey<'a>
Source§fn from(value: &'a PrivateKey<256>) -> Self
fn from(value: &'a PrivateKey<256>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a PrivateKey<384>> for VarLenPrivateKey<'a>
impl<'a> From<&'a PrivateKey<384>> for VarLenPrivateKey<'a>
Source§fn from(value: &'a PrivateKey<384>) -> Self
fn from(value: &'a PrivateKey<384>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a PrivateKey<512>> for VarLenPrivateKey<'a>
impl<'a> From<&'a PrivateKey<512>> for VarLenPrivateKey<'a>
Source§fn from(value: &'a PrivateKey<512>) -> Self
fn from(value: &'a PrivateKey<512>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a PrivateKey<768>> for VarLenPrivateKey<'a>
impl<'a> From<&'a PrivateKey<768>> for VarLenPrivateKey<'a>
Source§fn from(value: &'a PrivateKey<768>) -> Self
fn from(value: &'a PrivateKey<768>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for VarLenPrivateKey<'a>
impl<'a> RefUnwindSafe for VarLenPrivateKey<'a>
impl<'a> Send for VarLenPrivateKey<'a>
impl<'a> Sync for VarLenPrivateKey<'a>
impl<'a> Unpin for VarLenPrivateKey<'a>
impl<'a> UnwindSafe for VarLenPrivateKey<'a>
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