#[non_exhaustive]pub enum KeyAlgorithm {
Ed25519,
EcdsaP256Sha256,
}Expand description
The signature algorithm of a PublicKey.
Experimental: may change in a 0.x minor release.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ed25519
Ed25519 (RFC 8032) over the content bytes. The signature is the
64-byte value, as openssl pkeyutl -sign -rawin writes it.
EcdsaP256Sha256
ECDSA with P-256 and SHA-256 over the content bytes. The signature is
DER-encoded, as openssl dgst -sha256 -sign writes it, or the 64-byte
r || s form.
Implementations§
Trait Implementations§
Source§impl Clone for KeyAlgorithm
impl Clone for KeyAlgorithm
impl Copy for KeyAlgorithm
Source§impl Debug for KeyAlgorithm
impl Debug for KeyAlgorithm
Source§impl Display for KeyAlgorithm
impl Display for KeyAlgorithm
impl Eq for KeyAlgorithm
Source§impl Hash for KeyAlgorithm
impl Hash for KeyAlgorithm
Source§impl PartialEq for KeyAlgorithm
impl PartialEq for KeyAlgorithm
impl StructuralPartialEq for KeyAlgorithm
Auto Trait Implementations§
impl Forget for KeyAlgorithm
impl Freeze for KeyAlgorithm
impl Move 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