diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-07 14:05:03 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-07 14:05:03 +0200 |
commit | c799f8fcf1210079a5f00fa944d8e8c59a37fc60 (patch) | |
tree | e0056c8e10c2e29be0c42e0a2187e9b2405f444a /hmac_state_output_size.c | |
parent | Use malloc by default but allow bounded alloca (diff) | |
download | libsha1-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 '')
-rw-r--r-- | hmac_state_output_size.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hmac_state_output_size.c b/hmac_state_output_size.c index 68e5ed2..71be1b2 100644 --- a/hmac_state_output_size.c +++ b/hmac_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_hmac_state_output_size(const struct libsha1_hmac_state *restrict state) -{ - return libsha1_algorithm_output_size(state->sha1_state.algorithm); -} +extern inline size_t libsha1_hmac_state_output_size(const struct libsha1_hmac_state *restrict); |