pub struct PqdsaPrivateKey<'a>(pub(crate) &'a PqdsaKeyPair);Expand description
A PQDSA private key.
Tuple Fields§
§0: &'a PqdsaKeyPairTrait Implementations§
Source§impl AsDer<Pkcs8V1Der<'static>> for PqdsaPrivateKey<'_>
impl AsDer<Pkcs8V1Der<'static>> for PqdsaPrivateKey<'_>
Source§fn as_der(&self) -> Result<Pkcs8V1Der<'static>, Unspecified>
fn as_der(&self) -> Result<Pkcs8V1Der<'static>, Unspecified>
Serializes the key to PKCS#8 v1 DER.
See PqdsaKeyPair::to_pkcs8v1 for the chosen representation of the private key.
§Errors
Returns Unspecified if serialization fails.
Source§impl AsRawBytes<PqdsaPrivateKeyRaw<'static>> for PqdsaPrivateKey<'_>
impl AsRawBytes<PqdsaPrivateKeyRaw<'static>> for PqdsaPrivateKey<'_>
Source§fn as_raw_bytes(&self) -> Result<PqdsaPrivateKeyRaw<'static>, Unspecified>
fn as_raw_bytes(&self) -> Result<PqdsaPrivateKeyRaw<'static>, Unspecified>
Serializes the expanded raw private key.
This can be passed back to PqdsaKeyPair::from_raw_private_key.
Auto Trait Implementations§
impl<'a> Freeze for PqdsaPrivateKey<'a>
impl<'a> RefUnwindSafe for PqdsaPrivateKey<'a>
impl<'a> Send for PqdsaPrivateKey<'a>
impl<'a> Sync for PqdsaPrivateKey<'a>
impl<'a> Unpin for PqdsaPrivateKey<'a>
impl<'a> UnsafeUnpin for PqdsaPrivateKey<'a>
impl<'a> UnwindSafe for PqdsaPrivateKey<'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