Skip to main content

HasKeyAlg

Trait HasKeyAlg 

Source
pub trait HasKeyAlg: Debug {
    // Required method
    fn algorithm(&self) -> KeyAlg;
}
Expand description

A trait for accessing the algorithm of a key, used when converting to generic AnyKey instances.

Required Methods§

Source

fn algorithm(&self) -> KeyAlg

Get the corresponding key algorithm.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl HasKeyAlg for Ed25519KeyPair

Available on crate feature ed25519 only.
Source§

impl HasKeyAlg for K256KeyPair

Available on crate feature k256 only.
Source§

impl HasKeyAlg for P256KeyPair

Available on crate features p256_hardware or p256 only.
Source§

impl HasKeyAlg for P384KeyPair

Available on crate feature p384 only.
Source§

impl HasKeyAlg for X25519KeyPair

Available on crate feature ed25519 only.
Source§

impl<Pk: BlsPublicKeyType> HasKeyAlg for BlsKeyPair<Pk>

Available on crate feature bls only.
Source§

impl<T: AesType> HasKeyAlg for AesKey<T>

Available on crate feature aes only.
Source§

impl<T: Chacha20Type> HasKeyAlg for Chacha20Key<T>

Available on crate feature chacha only.