XMSS Library
generic_digest.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2023 Fox Crypto B.V.
3  * SPDX-License-Identifier: MIT
4  *
5  * SPDX-FileContributor: Frans van Dorsselaer
6  */
7 
55 #pragma once
56 
57 #ifndef XMSS_GENERIC_DIGEST_H_INCLUDED
59 #define XMSS_GENERIC_DIGEST_H_INCLUDED
60 
61 #include <stddef.h>
62 #include <stdint.h>
63 
64 #include "types.h"
65 
77 typedef void *(*XmssGenericDigestInit)(void);
78 
90 typedef void (*XmssGenericDigestUpdate)(void *context, const uint8_t *data, size_t data_length);
91 
101 typedef void (*XmssGenericDigestFinalize)(void *context, XmssValue256 *digest);
102 
103 #endif /* !XMSS_GENERIC_DIGEST_H_INCLUDED */
void(* XmssGenericDigestUpdate)(void *context, const uint8_t *data, size_t data_length)
Generic digest update function. Updates the internal hash state for a single digest calculation with ...
Definition: generic_digest.h:90
void(* XmssGenericDigestFinalize)(void *context, XmssValue256 *digest)
Generic digest finalize function. Outputs the digest and disposes the context.
Definition: generic_digest.h:101
A generic 256-bit value, represented as a byte stream.
Definition: types.h:279
Enumerations, basic types and callback function specifications.