pub enum KeyAlgorithm {
Ed25519,
P256,
}Expand description
Signing algorithm a discovered key is pinned to.
The algorithm travels WITH the key rather than being inferred from its length, so a verifier never guesses which primitive to use.
Variants§
Implementations§
Source§impl KeyAlgorithm
impl KeyAlgorithm
Sourcepub fn from_dns_tag(tag: &str) -> Result<Self, AphError>
pub fn from_dns_tag(tag: &str) -> Result<Self, AphError>
Parses the alg tag of a DNS TXT record (spec §8.4.5).
The tag values are lowercase and closed; anything else is APH_E010
rather than a silent fallback to a default algorithm.
Trait Implementations§
Source§impl Clone for KeyAlgorithm
impl Clone for KeyAlgorithm
impl Copy for KeyAlgorithm
Source§impl Debug for KeyAlgorithm
impl Debug for KeyAlgorithm
impl Eq for KeyAlgorithm
Source§impl PartialEq for KeyAlgorithm
impl PartialEq for KeyAlgorithm
impl StructuralPartialEq for KeyAlgorithm
Auto Trait Implementations§
impl Freeze for KeyAlgorithm
impl RefUnwindSafe for KeyAlgorithm
impl Send for KeyAlgorithm
impl Sync for KeyAlgorithm
impl Unpin for KeyAlgorithm
impl UnsafeUnpin for KeyAlgorithm
impl UnwindSafe for KeyAlgorithm
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