X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/1ed59855863174523aabfba933434950e051e00a..a5ffa9b475a426bc73366db01f7cc92a3811bc3a:/src/src/hash.h diff --git a/src/src/hash.h b/src/src/hash.h index f1ebac467..09b65944d 100644 --- a/src/src/hash.h +++ b/src/src/hash.h @@ -30,9 +30,13 @@ /* Hash context for the exim_sha_* routines */ typedef enum hashmethod { + HASH_BADTYPE, HASH_SHA1, HASH_SHA256, - HASH_SHA3 + HASH_SHA3_224, + HASH_SHA3_256, + HASH_SHA3_384, + HASH_SHA3_512, } hashmethod; typedef struct { @@ -63,7 +67,7 @@ typedef struct { } hctx; -extern void exim_sha_init(hctx *, hashmethod); +extern BOOL exim_sha_init(hctx *, hashmethod); extern void exim_sha_update(hctx *, const uschar *a, int); extern void exim_sha_finish(hctx *, blob *); extern int exim_sha_hashlen(hctx *);