Struct ssh_key::public::RsaPublicKey
source · [−]Available on crate feature
alloc
only.Expand description
RSA public key.
Described in RFC4253 § 6.6.
Fields
e: MPInt
RSA public exponent.
n: MPInt
RSA 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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RsaPublicKey
impl Debug for RsaPublicKey
sourceimpl Decode for RsaPublicKey
impl Decode for RsaPublicKey
sourceimpl Encode for RsaPublicKey
impl Encode for RsaPublicKey
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 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 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + 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 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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<D> TryFrom<&RsaPublicKey> for VerifyingKey<D>where
D: Digest + AssociatedOid,
Available on crate feature rsa
only.
impl<D> TryFrom<&RsaPublicKey> for VerifyingKey<D>where
D: Digest + AssociatedOid,
Available on crate feature
rsa
only.sourcefn try_from(key: &RsaPublicKey) -> Result<VerifyingKey<D>>
fn try_from(key: &RsaPublicKey) -> Result<VerifyingKey<D>>
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