Unify header guards
By prefixing with XMSS_, we hopefully prevent conflicts
This commit is contained in:
父節點
b8eb8c44a1
當前提交
2c976d5268
@ -1,5 +1,5 @@
|
||||
#ifndef FIPS202_H
|
||||
#define FIPS202_H
|
||||
#ifndef XMSS_FIPS202_H
|
||||
#define XMSS_FIPS202_H
|
||||
|
||||
#define SHAKE128_RATE 168
|
||||
#define SHAKE256_RATE 136
|
||||
|
4
hash.h
4
hash.h
@ -5,8 +5,8 @@ Joost Rijneveld
|
||||
Public domain.
|
||||
*/
|
||||
|
||||
#ifndef HASH_H
|
||||
#define HASH_H
|
||||
#ifndef XMSS_HASH_H
|
||||
#define XMSS_HASH_H
|
||||
|
||||
#include "params.h"
|
||||
|
||||
|
@ -5,6 +5,9 @@ Joost Rijneveld
|
||||
Public domain.
|
||||
*/
|
||||
|
||||
#ifndef XMSS_HASH_ADDRESS_H
|
||||
#define XMSS_HASH_ADDRESS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
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_index(uint32_t addr[8], uint32_t treeIndex);
|
||||
|
||||
#endif
|
||||
|
4
params.h
4
params.h
@ -1,5 +1,5 @@
|
||||
#ifndef PARAMS_H
|
||||
#define PARAMS_H
|
||||
#ifndef XMSS_PARAMS_H
|
||||
#define XMSS_PARAMS_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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user