xmss-KAT-generator/params.h
Joost Rijneveld 1a7df37f59
Add accidentally omitted params.h
Previously this was generated and thus gitignored
2017-10-16 15:17:35 +02:00

37 řádky
944 B
C

#ifndef PARAMS_H
#define PARAMS_H
#include <stdint.h>
// These are merely internal identifiers for the supported hash functions
#define XMSS_SHA2 0
#define XMSS_SHAKE 1
// This is a consequence of the OID definitions in the draft, used for parsing
#define XMSS_OID_LEN 4
// This structure will be populated when calling xmss[mt]_parse_oid
typedef struct {
unsigned int func;
unsigned int n;
unsigned int wots_w;
unsigned int wots_log_w;
unsigned int wots_len1;
unsigned int wots_len2;
unsigned int wots_len;
unsigned int wots_keysize;
unsigned int full_height;
unsigned int tree_height;
unsigned int d;
unsigned int index_len;
unsigned int bytes;
unsigned int publickey_bytes;
unsigned int privatekey_bytes;
unsigned int bds_k;
} xmss_params;
int xmss_parse_oid(xmss_params *params, const uint32_t oid);
int xmssmt_parse_oid(xmss_params *params, const uint32_t oid);
#endif