mirror of
https://github.com/luxfi/pqclean.git
synced 2026-11-03 09:57:54 +00:00
Remove #ifdefs, fix a64 lack of MSVC support, fix a cast Fix some bugs minor fixes Add duplicate consistency files more minor fixes Fix problems found by tests Fix 32-bit compatibility problems Fix more bugs Windows compat issues Fix KECCAK4X in NMake makefiles
22 lines
632 B
C
22 lines
632 B
C
#ifndef MERKLE_H_
|
|
#define MERKLE_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "context.h"
|
|
#include "params.h"
|
|
|
|
/* Generate a Merkle signature (WOTS signature followed by the Merkle */
|
|
/* authentication path) */
|
|
#define merkle_sign SPX_NAMESPACE(merkle_sign)
|
|
void merkle_sign(uint8_t *sig, unsigned char *root,
|
|
const spx_ctx *ctx,
|
|
uint32_t wots_addr[8], uint32_t tree_addr[8],
|
|
uint32_t idx_leaf);
|
|
|
|
/* Compute the root node of the top-most subtree. */
|
|
#define merkle_gen_root SPX_NAMESPACE(merkle_gen_root)
|
|
void merkle_gen_root(unsigned char *root, const spx_ctx *ctx);
|
|
|
|
#endif /* MERKLE_H_ */
|