Struct libp2p_core::identity::rsa::PublicKey [−][src]
pub struct PublicKey(_);
Expand description
An RSA public key.
Implementations
Verify an RSA signature on a message using the public key.
Encode the RSA public key in DER as a PKCS#1 RSAPublicKey structure, as defined in RFC3447.
Encode the RSA public key in DER as a X.509 SubjectPublicKeyInfo structure, as defined in RFC5280.
Decode an RSA public key from a DER-encoded X.509 SubjectPublicKeyInfo
structure. See also encode_x509
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations
Mutably borrows from an owned value. Read more