Unify header guards

By prefixing with XMSS_, we hopefully prevent conflicts
This commit is contained in:
Joost Rijneveld 2017-10-19 16:04:42 +02:00
parent b8eb8c44a1
commit 2c976d5268
No known key found for this signature in database
GPG Key ID: A4FE39CF49CBC553
6 changed files with 15 additions and 10 deletions

View File

@ -1,5 +1,5 @@
#ifndef FIPS202_H #ifndef XMSS_FIPS202_H
#define FIPS202_H #define XMSS_FIPS202_H
#define SHAKE128_RATE 168 #define SHAKE128_RATE 168
#define SHAKE256_RATE 136 #define SHAKE256_RATE 136

4
hash.h
View File

@ -5,8 +5,8 @@ Joost Rijneveld
Public domain. Public domain.
*/ */
#ifndef HASH_H #ifndef XMSS_HASH_H
#define HASH_H #define XMSS_HASH_H
#include "params.h" #include "params.h"

View File

@ -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

View File

@ -1,5 +1,5 @@
#ifndef PARAMS_H #ifndef XMSS_PARAMS_H
#define PARAMS_H #define XMSS_PARAMS_H
#include <stdint.h> #include <stdint.h>

View File

@ -1,5 +1,5 @@
#ifndef RANDOMBYTES_H #ifndef XMSS_RANDOMBYTES_H
#define 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);

4
wots.h
View File

@ -5,8 +5,8 @@ Joost Rijneveld
Public domain. Public domain.
*/ */
#ifndef WOTS_H #ifndef XMSS_WOTS_H
#define WOTS_H #define XMSS_WOTS_H
#include <stdint.h> #include <stdint.h>
#include "params.h" #include "params.h"