Skip to content

Add Blake3 support #394

@httpjamesm

Description

@httpjamesm

Summary
Brief explanation of the feature.

Orion currently supports Blake2b hashing through

    let digest = orion::hash::digest(data).unwrap();

which uses Blake2b-256. However, Blake3 is 7x faster wazuh/wazuh#15632.

Basic example
If the proposal involves a new or changed API, include a basic code example. Omit this section if it's not applicable.

I propose adding Blake3 through another function to prevent breaking old code. Maybe orion::hash::digest_blake3?


**Motivation**
Why are we doing this? What use cases does it support? Will it be used anywhere?

It would greatly increase performance of the digest function and allow for variable output sizes, such as 16 bytes and up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions