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.

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 feature 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.