From 3f619478f796eddbba6e39502fe941b285dd97b1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:00:34 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- storage/maria/libmarias3/src/sha256.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 storage/maria/libmarias3/src/sha256.h (limited to 'storage/maria/libmarias3/src/sha256.h') diff --git a/storage/maria/libmarias3/src/sha256.h b/storage/maria/libmarias3/src/sha256.h new file mode 100644 index 00000000..45457b9b --- /dev/null +++ b/storage/maria/libmarias3/src/sha256.h @@ -0,0 +1,25 @@ +/* + * SHA256 hash implementation and interface functions + * Copyright (c) 2003-2016, Jouni Malinen + * + * This software may be distributed under the terms of the BSD license. + * See README for more details. + */ + +#ifndef SHA256_H +#define SHA256_H + +#define SHA256_MAC_LEN 32 + +#include +#include +#include + +int hmac_sha256_vector(const uint8_t *key, size_t key_len, size_t num_elem, + const uint8_t *addr[], const size_t *len, uint8_t *mac); +int hmac_sha256(const uint8_t *key, size_t key_len, const uint8_t *data, + size_t data_len, uint8_t *mac); + +int sha256(const uint8_t *addr, const size_t len, uint8_t *mac); + +#endif /* SHA256_H */ -- cgit v1.2.3