diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-27 18:55:44 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-27 18:55:44 +0100 |
commit | ccc9d0065dfecdac39ae26c5e3f824102131a0c8 (patch) | |
tree | 276eb42bf4a38f2b72a5c46d1b88bc77c8c39f02 /src/libcryptobox/blake2/blake2.h | |
parent | 649f9aa4a32fc51c1b60b28fa8830a603c88fcad (diff) | |
download | rspamd-ccc9d0065dfecdac39ae26c5e3f824102131a0c8.tar.gz rspamd-ccc9d0065dfecdac39ae26c5e3f824102131a0c8.zip |
[Minor] Convert some enums to static macros
Diffstat (limited to 'src/libcryptobox/blake2/blake2.h')
-rw-r--r-- | src/libcryptobox/blake2/blake2.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libcryptobox/blake2/blake2.h b/src/libcryptobox/blake2/blake2.h index 9966c66d2..3da1958ae 100644 --- a/src/libcryptobox/blake2/blake2.h +++ b/src/libcryptobox/blake2/blake2.h @@ -20,13 +20,13 @@ extern "C" { #endif -enum blake2b_constant { - BLAKE2B_BLOCKBYTES = 128, - BLAKE2B_OUTBYTES = 64, - BLAKE2B_KEYBYTES = 64, - BLAKE2B_SALTBYTES = 16, - BLAKE2B_PERSONALBYTES = 16 -}; + +#define BLAKE2B_BLOCKBYTES 128 +#define BLAKE2B_OUTBYTES 64 +#define BLAKE2B_KEYBYTES 64 +#define BLAKE2B_SALTBYTES 16 +#define BLAKE2B_PERSONALBYTES 16 + typedef struct blake2b_state_t { unsigned char opaque[256]; |