Browse Source

Unify header guards

By prefixing with XMSS_, we hopefully prevent conflicts
master
Joost Rijneveld 7 years ago
parent
commit
2c976d5268
No known key found for this signature in database GPG Key ID: A4FE39CF49CBC553
6 changed files with 15 additions and 10 deletions
  1. +2
    -2
      fips202.h
  2. +2
    -2
      hash.h
  3. +5
    -0
      hash_address.h
  4. +2
    -2
      params.h
  5. +2
    -2
      randombytes.h
  6. +2
    -2
      wots.h

+ 2
- 2
fips202.h View File

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


+ 2
- 2
hash.h View File

@@ -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
- 0
hash_address.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

+ 2
- 2
params.h View File

@@ -1,5 +1,5 @@
#ifndef PARAMS_H
#define PARAMS_H
#ifndef XMSS_PARAMS_H
#define XMSS_PARAMS_H


#include <stdint.h> #include <stdint.h>




+ 2
- 2
randombytes.h View File

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




+ 2
- 2
wots.h View File

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


Loading…
Cancel
Save