@@ -1,5 +1,5 @@ | |||||
#ifndef FIPS202_H | |||||
#define FIPS202_H | |||||
#ifndef XMSS_FIPS202_H | |||||
#define XMSS_FIPS202_H | |||||
#define SHAKE128_RATE 168 | #define SHAKE128_RATE 168 | ||||
#define SHAKE256_RATE 136 | #define SHAKE256_RATE 136 | ||||
@@ -5,8 +5,8 @@ Joost Rijneveld | |||||
Public domain. | Public domain. | ||||
*/ | */ | ||||
#ifndef HASH_H | |||||
#define HASH_H | |||||
#ifndef XMSS_HASH_H | |||||
#define XMSS_HASH_H | |||||
#include "params.h" | #include "params.h" | ||||
@@ -5,6 +5,9 @@ Joost Rijneveld | |||||
Public domain. | Public domain. | ||||
*/ | */ | ||||
#ifndef XMSS_HASH_ADDRESS_H | |||||
#define XMSS_HASH_ADDRESS_H | |||||
#include <stdint.h> | #include <stdint.h> | ||||
void set_layer_addr(uint32_t addr[8], uint32_t layer); | void set_layer_addr(uint32_t addr[8], uint32_t layer); | ||||
@@ -32,3 +35,5 @@ void set_ltree_addr(uint32_t addr[8], uint32_t ltree); | |||||
void set_tree_height(uint32_t addr[8], uint32_t treeHeight); | void set_tree_height(uint32_t addr[8], uint32_t treeHeight); | ||||
void set_tree_index(uint32_t addr[8], uint32_t treeIndex); | void set_tree_index(uint32_t addr[8], uint32_t treeIndex); | ||||
#endif |
@@ -1,5 +1,5 @@ | |||||
#ifndef PARAMS_H | |||||
#define PARAMS_H | |||||
#ifndef XMSS_PARAMS_H | |||||
#define XMSS_PARAMS_H | |||||
#include <stdint.h> | #include <stdint.h> | ||||
@@ -1,5 +1,5 @@ | |||||
#ifndef RANDOMBYTES_H | |||||
#define RANDOMBYTES_H | |||||
#ifndef XMSS_RANDOMBYTES_H | |||||
#define XMSS_RANDOMBYTES_H | |||||
extern void randombytes(unsigned char * x,unsigned long long xlen); | extern void randombytes(unsigned char * x,unsigned long long xlen); | ||||
@@ -5,8 +5,8 @@ Joost Rijneveld | |||||
Public domain. | Public domain. | ||||
*/ | */ | ||||
#ifndef WOTS_H | |||||
#define WOTS_H | |||||
#ifndef XMSS_WOTS_H | |||||
#define XMSS_WOTS_H | |||||
#include <stdint.h> | #include <stdint.h> | ||||
#include "params.h" | #include "params.h" | ||||