diff options
author | Mattias Andrée <maandree@kth.se> | 2024-08-24 11:26:42 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-08-24 11:26:42 +0200 |
commit | 3a73ab675a19e2ea29b4cb1385db0188ce4997f8 (patch) | |
tree | b010de454a833b01fe2ed469fd4f0fd699c59e50 /libhashsum_init_ripemd_320_hasher.c | |
parent | Test partial byte support in SHA1 and SHA-224 (diff) | |
download | libhashsum-3a73ab675a19e2ea29b4cb1385db0188ce4997f8.tar.gz libhashsum-3a73ab675a19e2ea29b4cb1385db0188ce4997f8.tar.bz2 libhashsum-3a73ab675a19e2ea29b4cb1385db0188ce4997f8.tar.xz |
Make algorithms optional
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libhashsum_init_ripemd_320_hasher.c')
-rw-r--r-- | libhashsum_init_ripemd_320_hasher.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libhashsum_init_ripemd_320_hasher.c b/libhashsum_init_ripemd_320_hasher.c index 2f09ce7..c9cda07 100644 --- a/libhashsum_init_ripemd_320_hasher.c +++ b/libhashsum_init_ripemd_320_hasher.c @@ -1,5 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include "common.h" +#ifdef SUPPORT_RIPEMD_320 #define LETO32(X)\ @@ -249,3 +250,14 @@ libhashsum_init_ripemd_320_hasher(struct libhashsum_hasher *this) this->state.ripemd_320.h.h32[9] = UINT32_C(0x3c2d1e0f); return 0; } + + +#else +int +libhashsum_init_ripemd_320_hasher(struct libhashsum_hasher *this) +{ + (void) this; + errno = ENOSYS; + return -1; +} +#endif |