aboutsummaryrefslogtreecommitdiffstats
path: root/state_output_size.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-07 14:05:03 +0200
committerMattias Andrée <maandree@kth.se>2022-07-07 14:05:03 +0200
commitc799f8fcf1210079a5f00fa944d8e8c59a37fc60 (patch)
treee0056c8e10c2e29be0c42e0a2187e9b2405f444a /state_output_size.c
parentUse malloc by default but allow bounded alloca (diff)
downloadlibsha1-c799f8fcf1210079a5f00fa944d8e8c59a37fc60.tar.gz
libsha1-c799f8fcf1210079a5f00fa944d8e8c59a37fc60.tar.bz2
libsha1-c799f8fcf1210079a5f00fa944d8e8c59a37fc60.tar.xz
Inline some output size functions
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'state_output_size.c')
-rw-r--r--state_output_size.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/state_output_size.c b/state_output_size.c
index 3b3d14d..c148a44 100644
--- a/state_output_size.c
+++ b/state_output_size.c
@@ -8,8 +8,4 @@
* @param state The state
* @return The number of bytes in the output, zero on error
*/
-size_t
-libsha1_state_output_size(const struct libsha1_state *restrict state)
-{
- return libsha1_algorithm_output_size(state->algorithm);
-}
+extern inline size_t libsha1_state_output_size(const struct libsha1_state *restrict state);