aboutsummaryrefslogtreecommitdiffstats
path: root/libkeccak-legacy.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-02-12 18:46:12 +0100
committerMattias Andrée <maandree@kth.se>2019-02-12 18:46:12 +0100
commit47139985115e175ed9c3f7d648d6d9ec7c48b89b (patch)
tree846111020e7a2bb3bcd85cf00ceb158d07dc0c28 /libkeccak-legacy.h
parentUpdate makefile (diff)
downloadlibkeccak-47139985115e175ed9c3f7d648d6d9ec7c48b89b.tar.gz
libkeccak-47139985115e175ed9c3f7d648d6d9ec7c48b89b.tar.bz2
libkeccak-47139985115e175ed9c3f7d648d6d9ec7c48b89b.tar.xz
Deprecate libkeccak_{state,hmac}_{unmarshal_skip,marshal_size} and replace with the functions without the _skip or _size suffix
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libkeccak-legacy.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/libkeccak-legacy.h b/libkeccak-legacy.h
index 7641711..3579b5e 100644
--- a/libkeccak-legacy.h
+++ b/libkeccak-legacy.h
@@ -12,3 +12,31 @@ typedef struct libkeccak_state libkeccak_state_t;
LIBKECCAK_GCC_ONLY(__attribute__((__deprecated__("Use struct libkeccak_hmac_state instead of libkeccak_hmac_state_t"))))
typedef struct libkeccak_hmac_state libkeccak_hmac_state_t;
+
+LIBKECCAK_GCC_ONLY(__attribute__((__deprecated__("Use libkeccak_hmac_unmarshal(NULL, data) instead of libkeccak_hmac_unmarshal_skip(data)"))))
+static inline size_t
+libkeccak_hmac_unmarshal_skip(const void *restrict data)
+{
+ return libkeccak_hmac_unmarshal(NULL, data);
+}
+
+LIBKECCAK_GCC_ONLY(__attribute__((__deprecated__("Use libkeccak_state_unmarshal(NULL, data) instead of libkeccak_state_unmarshal_skip(data)"))))
+static inline size_t
+libkeccak_state_unmarshal_skip(const void *restrict data)
+{
+ return libkeccak_state_unmarshal(NULL, data);
+}
+
+LIBKECCAK_GCC_ONLY(__attribute__((__deprecated__("Use libkeccak_hmac_marshal(state, NULL) instead of libkeccak_hmac_marshal_size(state)"))))
+static inline size_t
+libkeccak_hmac_marshal_size(const struct libkeccak_hmac_state *restrict state)
+{
+ return libkeccak_hmac_marshal(state, NULL);
+}
+
+LIBKECCAK_GCC_ONLY(__attribute__((__deprecated__("Use libkeccak_state_marshal(state, NULL) instead of libkeccak_state_marshal_size(state)"))))
+static inline size_t
+libkeccak_state_marshal_size(const struct libkeccak_state *restrict state)
+{
+ return libkeccak_state_marshal(state, NULL);
+}