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
父節點 b8eb8c44a1
當前提交 2c976d5268
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: A4FE39CF49CBC553
共有 6 個文件被更改,包括 15 次插入10 次删除

查看文件

@ -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
查看文件

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

查看文件

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

4
wots.h
查看文件

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