Skip to content

Enable generic-array's more_lengths feature (digest crate) #890

Description

@wtfsck

generic-array's feature more_lengths enables more Into<[T; $n]> implementations which are useful when converting the result to an array. Right now it's only possible to do this if the hash size is at most 32 bytes. With this feature it's possible to also do it up to size 64 and some select sizes > 64, see the code below.

https://github.com/fizyk20/generic-array/blob/d4d63b7ea425f42a7e373510f95eb36ed17d34c4/src/impls.rs#L218-L251

generic-array = "0.14.4"

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions