pub struct RsaPublicKey<U> {
pub modulus: U,
pub public_exponent: U,
}Expand description
PKCS#1 RSA Public Keys as defined in RFC 8017 Appendix 1.1.
ASN.1 structure containing a serialized RSA public key:
RSAPublicKey ::= SEQUENCE {
modulus INTEGER, -- n
publicExponent INTEGER -- e
}Fields§
§modulus: Un: RSA modulus
public_exponent: Ue: RSA public exponent
Trait Implementations§
Source§impl<U: Clone> Clone for RsaPublicKey<U>
impl<U: Clone> Clone for RsaPublicKey<U>
Source§fn clone(&self) -> RsaPublicKey<U>
fn clone(&self) -> RsaPublicKey<U>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<U: Debug> Debug for RsaPublicKey<U>
impl<U: Debug> Debug for RsaPublicKey<U>
Source§impl<'a, U> DecodeValue<'a> for RsaPublicKey<U>
impl<'a, U> DecodeValue<'a> for RsaPublicKey<U>
Source§impl<U> EncodeValue for RsaPublicKey<U>where
U: EncodeValue + FixedTag,
impl<U> EncodeValue for RsaPublicKey<U>where
U: EncodeValue + FixedTag,
Source§impl<U: PartialEq> PartialEq for RsaPublicKey<U>
impl<U: PartialEq> PartialEq for RsaPublicKey<U>
Source§fn eq(&self, other: &RsaPublicKey<U>) -> bool
fn eq(&self, other: &RsaPublicKey<U>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<U> PemLabel for RsaPublicKey<U>
Available on crate feature pem only.
impl<U> PemLabel for RsaPublicKey<U>
Available on crate feature
pem only.Source§impl<'a, U> TryFrom<&'a [u8]> for RsaPublicKey<U>
impl<'a, U> TryFrom<&'a [u8]> for RsaPublicKey<U>
Source§impl<U> TryFrom<&RsaPublicKey<U>> for Documentwhere
RsaPublicKey<U>: EncodeValue,
Available on crate feature alloc only.
impl<U> TryFrom<&RsaPublicKey<U>> for Documentwhere
RsaPublicKey<U>: EncodeValue,
Available on crate feature
alloc only.Source§impl<U> TryFrom<RsaPublicKey<U>> for Documentwhere
RsaPublicKey<U>: EncodeValue,
Available on crate feature alloc only.
impl<U> TryFrom<RsaPublicKey<U>> for Documentwhere
RsaPublicKey<U>: EncodeValue,
Available on crate feature
alloc only.impl<U: Copy> Copy for RsaPublicKey<U>
impl<U: Eq> Eq for RsaPublicKey<U>
impl<'a, U> Sequence<'a> for RsaPublicKey<U>
impl<U> StructuralPartialEq for RsaPublicKey<U>
Auto Trait Implementations§
impl<U> Freeze for RsaPublicKey<U>where
U: Freeze,
impl<U> RefUnwindSafe for RsaPublicKey<U>where
U: RefUnwindSafe,
impl<U> Send for RsaPublicKey<U>where
U: Send,
impl<U> Sync for RsaPublicKey<U>where
U: Sync,
impl<U> Unpin for RsaPublicKey<U>where
U: Unpin,
impl<U> UnsafeUnpin for RsaPublicKey<U>where
U: UnsafeUnpin,
impl<U> UnwindSafe for RsaPublicKey<U>where
U: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
Source§type Error = <T as DecodeValue<'a>>::Error
type Error = <T as DecodeValue<'a>>::Error
Type returned in the event of a decoding error.
Source§fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
Attempt to decode this TLV message using the provided decoder. Read more
Source§impl<T> Encode for T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object in bytes when encoded as ASN.1 DER. Read more
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this TLV object to the provided byte slice, returning a sub-slice
containing the encoded message. Read more
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit