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.
Summary
Brief explanation of the feature.
Orion currently supports Blake2b hashing through
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?