pub struct PublicKey {
key: Box<[u8]>,
}
Expand description
A serialized RSA public key.
Fields§
§key: Box<[u8]>
Implementations§
Source§impl PublicKey
impl PublicKey
pub(super) fn new( evp_pkey: &ManagedPointer<*mut EVP_PKEY>, ) -> Result<Self, KeyRejected>
Trait Implementations§
Source§impl AsDer<PublicKeyX509Der<'static>> for PublicKey
impl AsDer<PublicKeyX509Der<'static>> for PublicKey
Source§fn as_der(&self) -> Result<PublicKeyX509Der<'static>, Unspecified>
fn as_der(&self) -> Result<PublicKeyX509Der<'static>, Unspecified>
Serializes into a DER format. Read more
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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