Skip to content

digest: compatibility with lazy buffers  #503

Closed

Description

@newpavlov

Currently block-buffer and digest do not support lazy buffering, which is needed for some algorithms like Skein. Instead of padding those algorithms "tweak" compression function with a flag denoting last block. Lack of support is intentional, since it allows to support BlockBuffer invariant (cursor is always smaller than block size) used by padding functions.

One possible way forward is to generalize digest::core_api::UpdateCoreWrapper over block buffer types, i.e. block-buffer will contain two buffer types: BlockBuffer and LazyBlockBuffer, generalized by a trait.

Activity

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

    digestenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions