aboutsummaryrefslogtreecommitdiffstats
path: root/libblake_blake512_digest_get_required_input_size.c
diff options
context:
space:
mode:
Diffstat (limited to 'libblake_blake512_digest_get_required_input_size.c')
-rw-r--r--libblake_blake512_digest_get_required_input_size.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/libblake_blake512_digest_get_required_input_size.c b/libblake_blake512_digest_get_required_input_size.c
index 46c2cb1..ff335bb 100644
--- a/libblake_blake512_digest_get_required_input_size.c
+++ b/libblake_blake512_digest_get_required_input_size.c
@@ -1,15 +1,4 @@
/* See LICENSE file for copyright and license details. */
#include "common.h"
-size_t
-libblake_blake512_digest_get_required_input_size(size_t len, size_t bits, const char *suffix)
-{
- bits += suffix ? strlen(suffix) : 0;
- len += bits >> 3;
- bits &= 7;
- bits += (len & 127) << 3;
- len &= ~(size_t)127;
- len += (size_t)128 << (bits >= 1024 - (1 + 2 * 64));
- return len;
-}
-
+extern inline size_t libblake_blake512_digest_get_required_input_size(size_t len, size_t bits, const char *suffix);