Trait AssociatedHashAlg

Source
pub trait AssociatedHashAlg: Digest {
    const HASH_ALG: HashAlg;
}
Expand description

Associate an SSH HashAlg with the given type.

Required Associated Constants§

Source

const HASH_ALG: HashAlg

Algorithm identifier for this hash.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AssociatedHashAlg for Sha256

Source§

const HASH_ALG: HashAlg = HashAlg::Sha256

Source§

impl AssociatedHashAlg for Sha512

Source§

const HASH_ALG: HashAlg = HashAlg::Sha512

Implementors§