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 --- libkeccak_state_unmarshal_skip.c | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 libkeccak_state_unmarshal_skip.c (limited to 'libkeccak_state_unmarshal_skip.c') diff --git a/libkeccak_state_unmarshal_skip.c b/libkeccak_state_unmarshal_skip.c deleted file mode 100644 index 34a898a..0000000 --- a/libkeccak_state_unmarshal_skip.c +++ /dev/null @@ -1,18 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include "common.h" - - -/** - * Gets the number of bytes the `struct libkeccak_state` stored - * at the beginning of `data` occupies - * - * @param data The data buffer - * @return The byte size of the stored state - */ -size_t -libkeccak_state_unmarshal_skip(const void *restrict data_) -{ - const unsigned char *restrict data = data_; - data += (7 * sizeof(long int) + 26 * sizeof(int64_t)) / sizeof(char); - return sizeof(struct libkeccak_state) - sizeof(char *) + *(const size_t *)data * sizeof(char); -} -- cgit v1.2.3-70-g09d2