Struct ssh_key::public::RsaPublicKey
source · [−]Available on crate feature
alloc only.Expand description
RSA public key.
Described in RFC4253 § 6.6:
Fields
e: MPIntRSA public exponent.
n: MPIntRSA modulus.
Trait Implementations
sourceimpl Clone for RsaPublicKey
impl Clone for RsaPublicKey
sourcefn clone(&self) -> RsaPublicKey
fn clone(&self) -> RsaPublicKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RsaPublicKey
impl Debug for RsaPublicKey
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 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<RsaPublicKey> for KeyData
impl From<RsaPublicKey> for KeyData
sourcefn from(public_key: RsaPublicKey) -> KeyData
fn from(public_key: RsaPublicKey) -> KeyData
Converts to this type from the input type.
sourceimpl From<RsaPublicKey> for PublicKey
impl From<RsaPublicKey> for PublicKey
sourcefn from(public_key: RsaPublicKey) -> PublicKey
fn from(public_key: RsaPublicKey) -> PublicKey
Converts to this type from the input type.
sourceimpl Ord for RsaPublicKey
impl Ord for RsaPublicKey
sourcefn cmp(&self, other: &RsaPublicKey) -> Ordering
fn cmp(&self, other: &RsaPublicKey) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<RsaPublicKey> for RsaPublicKey
impl PartialEq<RsaPublicKey> for RsaPublicKey
sourcefn eq(&self, other: &RsaPublicKey) -> bool
fn eq(&self, other: &RsaPublicKey) -> bool
sourceimpl PartialOrd<RsaPublicKey> for RsaPublicKey
impl PartialOrd<RsaPublicKey> for RsaPublicKey
sourcefn partial_cmp(&self, other: &RsaPublicKey) -> Option<Ordering>
fn partial_cmp(&self, other: &RsaPublicKey) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl TryFrom<&RsaPublicKey> for RsaPublicKey
Available on crate feature rsa only.
impl TryFrom<&RsaPublicKey> for RsaPublicKey
Available on crate feature
rsa only.sourcefn try_from(key: &RsaPublicKey) -> Result<RsaPublicKey>
fn try_from(key: &RsaPublicKey) -> Result<RsaPublicKey>
Performs the conversion.
sourceimpl TryFrom<&RsaPublicKey> for RsaPublicKey
Available on crate feature rsa only.
impl TryFrom<&RsaPublicKey> for RsaPublicKey
Available on crate feature
rsa only.sourcefn try_from(key: &RsaPublicKey) -> Result<RsaPublicKey>
fn try_from(key: &RsaPublicKey) -> Result<RsaPublicKey>
Performs the conversion.
sourceimpl TryFrom<RsaPublicKey> for RsaPublicKey
Available on crate feature rsa only.
impl TryFrom<RsaPublicKey> for RsaPublicKey
Available on crate feature
rsa only.sourcefn try_from(key: RsaPublicKey) -> Result<RsaPublicKey>
fn try_from(key: RsaPublicKey) -> Result<RsaPublicKey>
Performs the conversion.
sourceimpl TryFrom<RsaPublicKey> for RsaPublicKey
Available on crate feature rsa only.
impl TryFrom<RsaPublicKey> for RsaPublicKey
Available on crate feature
rsa only.sourcefn try_from(key: RsaPublicKey) -> Result<RsaPublicKey>
fn try_from(key: RsaPublicKey) -> Result<RsaPublicKey>
Performs the conversion.
sourceimpl Verifier<Signature> for RsaPublicKey
Available on crate feature rsa only.
impl Verifier<Signature> for RsaPublicKey
Available on crate feature
rsa only.impl Eq for RsaPublicKey
impl StructuralEq for RsaPublicKey
impl StructuralPartialEq for RsaPublicKey
Auto Trait Implementations
impl RefUnwindSafe for RsaPublicKey
impl Send for RsaPublicKey
impl Sync for RsaPublicKey
impl Unpin for RsaPublicKey
impl UnwindSafe for RsaPublicKey
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