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§
Implementors§
impl HasKeyAlg for Ed25519KeyPair
Available on crate feature
ed25519 only.impl HasKeyAlg for K256KeyPair
Available on crate feature
k256 only.impl HasKeyAlg for P256KeyPair
Available on crate features
p256 or p256_hardware only.impl HasKeyAlg for P384KeyPair
Available on crate feature
p384 only.impl HasKeyAlg for X25519KeyPair
Available on crate feature
ed25519 only.impl<Pk: BlsPublicKeyType> HasKeyAlg for BlsKeyPair<Pk>
Available on crate feature
bls only.impl<T: AesType> HasKeyAlg for AesKey<T>
Available on crate feature
aes only.impl<T: Chacha20Type> HasKeyAlg for Chacha20Key<T>
Available on crate feature
chacha only.