Skip to content

digest: add DynDigestWithOid #1182

@tarcieri

Description

@tarcieri

It'd be nice to have an object safe trait for obtaining the OID of a DynDigest. Something like:

pub trait DynDigestWithOid: DynDigest {
    fn oid(&self) -> ObjectIdentifier;
}

Separately that could probably use a trait like DynAssociatedOid in the const_oid crate, which ^^^ could be built on as a supertrait bound + blanket impl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    digestHash function crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions