Skip to content

blake2: implement CustomizedInit using digest macro #747

Open

Description

@newpavlov
No description provided.

Activity

  1. MavenRain commented on Jul 31, 2026

    @MavenRain

    I'd like to take this. The two // TODO: impl in the macro impls in blake2/src/lib.rs can't move as-is, because the wrappers come from digest::buffer_ct_variable! and that macro has no impl: section, unlike buffer_fixed! and buffer_xof! which both already have a CustomizedInit arm.

    So I've split it: RustCrypto/traits will add an optional trailing impl: ...; section to buffer_ct_variable! (purely additive, existing call forms untouched), and the blake2 side then becomes a two line change plus deleting the two hand-written impls. I have that follow-up ready locally and verified end to end against a patched digest, so I'll open it once the digest change lands and is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions