pub struct PublicKey { /* private fields */ }Expand description
A sealed-box recipient’s P-384 public key.
Implementations§
Source§impl PublicKey
impl PublicKey
Sourcepub fn from_spki_der(der: &[u8]) -> Result<Self, CryptoError>
pub fn from_spki_der(der: &[u8]) -> Result<Self, CryptoError>
Parses a P-384 SubjectPublicKeyInfo holding an uncompressed point, refusing any other key or encoding.
Sourcepub fn from_pem(text: &str) -> Result<Self, CryptoError>
pub fn from_pem(text: &str) -> Result<Self, CryptoError>
Parses exactly one canonical PUBLIC KEY PEM block holding a P-384 key.
Trait Implementations§
impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl Forget for PublicKey
impl Freeze for PublicKey
impl Move for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnsafeUnpin 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