Struct ssh_key::private::RsaKeypair
source · [−]pub struct RsaKeypair {
pub public: RsaPublicKey,
pub private: RsaPrivateKey,
}
Available on crate feature
alloc
only.Expand description
RSA private/public keypair.
Fields
public: RsaPublicKey
Public key.
private: RsaPrivateKey
Private key.
Implementations
Trait Implementations
sourceimpl Clone for RsaKeypair
impl Clone for RsaKeypair
sourcefn clone(&self) -> RsaKeypair
fn clone(&self) -> RsaKeypair
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl ConstantTimeEq for RsaKeypair
Available on crate feature subtle
only.
impl ConstantTimeEq for RsaKeypair
Available on crate feature
subtle
only.sourceimpl Debug for RsaKeypair
impl Debug for RsaKeypair
sourceimpl Decode for RsaKeypair
impl Decode for RsaKeypair
sourceimpl Encode for RsaKeypair
impl Encode for RsaKeypair
sourcefn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
sourcefn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer
.sourcefn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
fn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
Return the length of this type after encoding when prepended with a
uint32
length prefix. Read moresourceimpl From<&RsaKeypair> for RsaPublicKey
impl From<&RsaKeypair> for RsaPublicKey
sourcefn from(keypair: &RsaKeypair) -> RsaPublicKey
fn from(keypair: &RsaKeypair) -> RsaPublicKey
Converts to this type from the input type.
sourceimpl From<RsaKeypair> for KeypairData
impl From<RsaKeypair> for KeypairData
sourcefn from(keypair: RsaKeypair) -> KeypairData
fn from(keypair: RsaKeypair) -> KeypairData
Converts to this type from the input type.
sourceimpl From<RsaKeypair> for PrivateKey
impl From<RsaKeypair> for PrivateKey
sourcefn from(keypair: RsaKeypair) -> PrivateKey
fn from(keypair: RsaKeypair) -> PrivateKey
Converts to this type from the input type.
sourceimpl From<RsaKeypair> for RsaPublicKey
impl From<RsaKeypair> for RsaPublicKey
sourcefn from(keypair: RsaKeypair) -> RsaPublicKey
fn from(keypair: RsaKeypair) -> RsaPublicKey
Converts to this type from the input type.
sourceimpl PartialEq<RsaKeypair> for RsaKeypair
Available on crate feature subtle
only.
impl PartialEq<RsaKeypair> for RsaKeypair
Available on crate feature
subtle
only.sourceimpl Signer<Signature> for RsaKeypair
Available on crate feature rsa
only.
impl Signer<Signature> for RsaKeypair
Available on crate feature
rsa
only.sourceimpl TryFrom<&RsaKeypair> for RsaPrivateKey
Available on crate feature rsa
only.
impl TryFrom<&RsaKeypair> for RsaPrivateKey
Available on crate feature
rsa
only.sourcefn try_from(key: &RsaKeypair) -> Result<RsaPrivateKey>
fn try_from(key: &RsaKeypair) -> Result<RsaPrivateKey>
Performs the conversion.
sourceimpl<D> TryFrom<&RsaKeypair> for SigningKey<D>where
D: Digest + AssociatedOid,
Available on crate feature rsa
only.
impl<D> TryFrom<&RsaKeypair> for SigningKey<D>where
D: Digest + AssociatedOid,
Available on crate feature
rsa
only.sourcefn try_from(keypair: &RsaKeypair) -> Result<SigningKey<D>>
fn try_from(keypair: &RsaKeypair) -> Result<SigningKey<D>>
Performs the conversion.
sourceimpl TryFrom<&RsaPrivateKey> for RsaKeypair
Available on crate feature rsa
only.
impl TryFrom<&RsaPrivateKey> for RsaKeypair
Available on crate feature
rsa
only.sourcefn try_from(key: &RsaPrivateKey) -> Result<RsaKeypair>
fn try_from(key: &RsaPrivateKey) -> Result<RsaKeypair>
Performs the conversion.
sourceimpl TryFrom<RsaKeypair> for RsaPrivateKey
Available on crate feature rsa
only.
impl TryFrom<RsaKeypair> for RsaPrivateKey
Available on crate feature
rsa
only.sourcefn try_from(key: RsaKeypair) -> Result<RsaPrivateKey>
fn try_from(key: RsaKeypair) -> Result<RsaPrivateKey>
Performs the conversion.
sourceimpl TryFrom<RsaPrivateKey> for RsaKeypair
Available on crate feature rsa
only.
impl TryFrom<RsaPrivateKey> for RsaKeypair
Available on crate feature
rsa
only.sourcefn try_from(key: RsaPrivateKey) -> Result<RsaKeypair>
fn try_from(key: RsaPrivateKey) -> Result<RsaKeypair>
Performs the conversion.
impl Eq for RsaKeypair
Available on crate feature
subtle
only.Auto Trait Implementations
impl RefUnwindSafe for RsaKeypair
impl Send for RsaKeypair
impl Sync for RsaKeypair
impl Unpin for RsaKeypair
impl UnwindSafe for RsaKeypair
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more