pub enum PublicKey {
EcdsaP256Sha256(PublicKey<NistP256>),
EcdsaP384Sha384(PublicKey<NistP384>),
Ed25519(PublicKey),
}Expand description
Public key for http signature, only for asymmetric algorithm Name conventions follow Section 6.2.2, RFC9421
Variants§
EcdsaP256Sha256(PublicKey<NistP256>)
ecdsa-p256-sha256
EcdsaP384Sha384(PublicKey<NistP384>)
ecdsa-p384-sha384
Ed25519(PublicKey)
ed25519
Implementations§
Source§impl PublicKey
impl PublicKey
Sourcepub fn from_bytes(
alg: AlgorithmName,
bytes: &[u8],
) -> Result<PublicKey, HttpSigError>
pub fn from_bytes( alg: AlgorithmName, bytes: &[u8], ) -> Result<PublicKey, HttpSigError>
from plain bytes
Trait Implementations§
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