pub struct UncompressedPublicKey(/* private fields */);
Available on crate feature
v3
only.Expand description
This struct represents a uncompressed public key for P384, encoded in big-endian using: Octet-String-to-Elliptic-Curve-Point algorithm in SEC 1: Elliptic Curve Cryptography, Version 2.0.
Format: [0x04 || x || y]
This is provided to be able to convert uncompressed keys to compressed ones, as compressed is
required by PASETO and what an AsymmetricPublicKey<V3>
represents.
Trait Implementations§
Source§impl TryFrom<&[u8]> for UncompressedPublicKey
impl TryFrom<&[u8]> for UncompressedPublicKey
Source§impl TryFrom<&AsymmetricPublicKey<V3>> for UncompressedPublicKey
impl TryFrom<&AsymmetricPublicKey<V3>> for UncompressedPublicKey
Auto Trait Implementations§
impl Freeze for UncompressedPublicKey
impl RefUnwindSafe for UncompressedPublicKey
impl Send for UncompressedPublicKey
impl Sync for UncompressedPublicKey
impl Unpin for UncompressedPublicKey
impl UnwindSafe for UncompressedPublicKey
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