Struct pkcs1::RsaPublicKey [−][src]
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: UIntBytes<'a>
n
: RSA modulus
public_exponent: UIntBytes<'a>
e
: RSA public exponent
Implementations
This is supported on crate feature alloc
only.
alloc
only.Encode this RsaPublicKey
as ASN.1 DER.
This is supported on crate feature pem
only.
pem
only.Encode this RsaPublicKey
as PEM-encoded ASN.1 DER.
This is supported on crate feature pem
only.
pem
only.Encode this RsaPublicKey
as PEM-encoded ASN.1 DER with the given
LineEnding
.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for RsaPublicKey<'a>
impl<'a> Send for RsaPublicKey<'a>
impl<'a> Sync for RsaPublicKey<'a>
impl<'a> Unpin for RsaPublicKey<'a>
impl<'a> UnwindSafe for RsaPublicKey<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Is the provided Tag
decodable as a variant of this CHOICE
?
Compute the length of this value in bytes when encoded as ASN.1 DER.
Encode this value as ASN.1 DER using the provided Encoder
.
Encode this value to the provided byte slice, returning a sub-slice containing the encoded message. Read more
Encode this message as ASN.1 DER, appending it to the provided byte vector. Read more