From 47139985115e175ed9c3f7d648d6d9ec7c48b89b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 12 Feb 2019 18:46:12 +0100 Subject: Deprecate libkeccak_{state,hmac}_{unmarshal_skip,marshal_size} and replace with the functions without the _skip or _size suffix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test.c') diff --git a/test.c b/test.c index 059a9eb..020e045 100644 --- a/test.c +++ b/test.c @@ -8,7 +8,7 @@ /** - * Test functions in + * Test hexdecimal-coding functions * * @return Zero on success, -1 on error */ @@ -62,7 +62,7 @@ test_hex(void) /** - * Test functions in + * Test state functions * * @param spec The specifications for the state * @return Zero on success, -1 on error @@ -96,7 +96,7 @@ test_state(struct libkeccak_spec *restrict spec) return -1; } - marshal_size = libkeccak_state_marshal_size(state2); + marshal_size = libkeccak_state_marshal(state2, NULL); marshalled_data = malloc(marshal_size); if (!marshalled_data) { perror("malloc"); @@ -126,8 +126,8 @@ test_state(struct libkeccak_spec *restrict spec) return -1; } - if (libkeccak_state_unmarshal_skip(marshalled_data) != marshal_size) { - printf("libkeccak_state_unmarshal_skip returned an unexpected value.\n"); + if (libkeccak_state_unmarshal(NULL, marshalled_data) != marshal_size) { + printf("libkeccak_state_unmarshal(NULL, .) returned an unexpected value.\n"); return -1; } -- cgit v1.2.3-70-g09d2