Struct jwt_compact::alg::RsaPublicKey [−][src]
pub struct RsaPublicKey { /* fields omitted */ }with_rsa only.Expand description
Represents the public part of an RSA key.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Parse RsaPublicKey into a RsaPublicKey.
Deserialize object from ASN.1 DER-encoded RsaPublicKey
(binary format). Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Encrypt the given message.
Verify a signed message.
hashedmust be the result of hashing the input using the hashing function
passed in through hash.
If the message is valid Ok(()) is returned, otherwiese an Err indicating failure. Read more
Encrypt the given message.
Verify a signed message.
hashedmust be the result of hashing the input using the hashing function
passed in through hash.
If the message is valid Ok(()) is returned, otherwiese an Err indicating failure. Read more
Serialize a RsaPublicKeyDocument containing a PKCS#1-encoded public key.
type Error = WeakKeyError<RsaPublicKey>
type Error = WeakKeyError<RsaPublicKey>
The type returned in the event of a conversion error.
Performs the conversion.
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
Mutably borrows from an owned value. Read more
Parse SubjectPublicKeyInfo into a public key object.
Deserialize object from ASN.1 DER-encoded SubjectPublicKeyInfo
(binary format). Read more
Deserialize PKCS#8 private key from a PrivateKeyDocument.
Serialize a PublicKeyDocument containing a SPKI-encoded public key.
