pub enum Key<'a> {
RsaPem(&'a str),
Ed25519(&'a [u8; 32]),
}Expand description
The key a signature is checked against.
Variants§
RsaPem(&'a str)
A PEM-encoded RSA public key.
Ed25519(&'a [u8; 32])
A raw Ed25519 public key. Only RFC 9421 signatures use one.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Key<'a>
impl<'a> RefUnwindSafe for Key<'a>
impl<'a> Send for Key<'a>
impl<'a> Sync for Key<'a>
impl<'a> Unpin for Key<'a>
impl<'a> UnsafeUnpin for Key<'a>
impl<'a> UnwindSafe for Key<'a>
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