xmss-KAT-generator/hash_address.h

35 строки
821 B
C
Исходник Обычный вид История

/*
2016-09-22 15:31:41 +01:00
hash_address.h version 20160722
Andreas Hülsing
Joost Rijneveld
Public domain.
*/
2016-07-11 10:15:16 +01:00
#include <stdint.h>
void set_layer_addr(uint32_t addr[8], uint32_t layer);
2016-07-11 10:15:16 +01:00
void set_tree_addr(uint32_t addr[8], uint64_t tree);
2016-07-11 10:15:16 +01:00
void set_type(uint32_t addr[8], uint32_t type);
2016-07-11 10:15:16 +01:00
void set_key_and_mask(uint32_t addr[8], uint32_t key_and_mask);
2016-07-11 10:15:16 +01:00
/* These functions are used for OTS addresses. */
2016-07-11 10:15:16 +01:00
void set_ots_addr(uint32_t addr[8], uint32_t ots);
2016-07-11 10:15:16 +01:00
void set_chain_addr(uint32_t addr[8], uint32_t chain);
2016-07-11 10:15:16 +01:00
void set_hash_addr(uint32_t addr[8], uint32_t hash);
2016-07-11 10:15:16 +01:00
/* This function is used for L-trees. */
2016-07-11 10:15:16 +01:00
void set_ltree_addr(uint32_t addr[8], uint32_t ltree);
/* These functions are used for hash tree addresses. */
void set_tree_height(uint32_t addr[8], uint32_t treeHeight);
void set_tree_index(uint32_t addr[8], uint32_t treeIndex);