clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit e4455b61ef36d41adc6b6c4a1edd5bc6e499b137
parent de5285bc7c58a02106b01e5cf62c924330d75e17
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Fri, 27 May 2022 12:33:06 +0200

Refine the set of hash

Diffstat:
Minclude/clap/hash.h | 27+++++++++++++++++++--------
1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/include/clap/hash.h b/include/clap/hash.h @@ -8,14 +8,25 @@ extern "C" { // Commonly used hashing algorithms enum { - CLAP_HASH_CRC32, - CLAP_HASH_CRC64, - CLAP_HASH_MD5, - CLAP_HASH_SHA1, - CLAP_HASH_SHA2, - CLAP_HASH_SHA3, - CLAP_BLAKE2, - CLAP_BLAKE3, + CLAP_HASH_CRC32 = 0, + CLAP_HASH_CRC64 = 1, + CLAP_HASH_MD5 = 1000, + CLAP_HASH_SHA1 = 2000, + + CLAP_HASH_SHA2_224 = 3000, + CLAP_HASH_SHA2_256, + CLAP_HASH_SHA2_384, + CLAP_HASH_SHA2_512, + CLAP_HASH_SHA2_512_224, // state: 512, digest: 224 + CLAP_HASH_SHA2_512_256, // state: 512, digest: 256 + + CLAP_HASH_SHA3_224 = 4000, + CLAP_HASH_SHA3_256, + CLAP_HASH_SHA3_384, + CLAP_HASH_SHA3_512, + + CLAP_BLAKE2 = 5000, + CLAP_BLAKE3 = 6000, }; typedef uint32_t clap_hash;