Trait HashProvider

Source
pub trait HashProvider<H: HashAlgorithm>: Copy {
    type Digester: Digest;

    // Required method
    fn digester(&self) -> Self::Digester;
}
Expand description

A cryptography library for producing ArtifactIds with SHA-256.

Required Associated Types§

Source

type Digester: Digest

The type used to produce the SHA-256 digest.

Required Methods§

Source

fn digester(&self) -> Self::Digester

Get the SHA-256 digester.

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.

Implementors§

Source§

impl HashProvider<Sha256> for BoringSsl

Source§

type Digester = Sha256Digester

Source§

impl HashProvider<Sha256> for OpenSsl

Source§

type Digester = Sha256Digester

Source§

impl HashProvider<Sha256> for RustCrypto

Source§

type Digester = Sha256Digester