2015-08-11 11:08:27 +01:00
|
|
|
#ifndef XMSS_COMMONS_H
|
|
|
|
#define XMSS_COMMONS_H
|
|
|
|
|
2016-07-11 10:15:16 +01:00
|
|
|
#include <stdint.h>
|
2017-10-16 10:58:45 +01:00
|
|
|
#include "params.h"
|
2015-08-11 11:08:27 +01:00
|
|
|
|
2016-07-11 10:15:16 +01:00
|
|
|
void to_byte(unsigned char *output, unsigned long long in, uint32_t bytes);
|
2017-08-03 16:38:34 +01:00
|
|
|
|
2017-10-16 10:58:45 +01:00
|
|
|
void gen_leaf_wots(const xmss_params *params, unsigned char *leaf,
|
2017-08-03 16:38:34 +01:00
|
|
|
const unsigned char *sk_seed, const unsigned char *pub_seed,
|
|
|
|
uint32_t ltree_addr[8], uint32_t ots_addr[8]);
|
|
|
|
|
2017-10-16 10:58:45 +01:00
|
|
|
void get_seed(const xmss_params *params, unsigned char *seed,
|
2017-08-03 16:38:34 +01:00
|
|
|
const unsigned char *sk_seed, uint32_t addr[8]);
|
|
|
|
|
2017-10-16 10:58:45 +01:00
|
|
|
void l_tree(const xmss_params *params, unsigned char *leaf, unsigned char *wots_pk,
|
2017-08-03 16:38:34 +01:00
|
|
|
const unsigned char *pub_seed, uint32_t addr[8]);
|
|
|
|
|
2017-10-16 10:58:45 +01:00
|
|
|
int xmss_core_sign_open(const xmss_params *params,
|
|
|
|
unsigned char *m, unsigned long long *mlen,
|
2017-08-03 16:38:34 +01:00
|
|
|
const unsigned char *sm, unsigned long long smlen,
|
|
|
|
const unsigned char *pk);
|
|
|
|
|
2017-10-16 10:58:45 +01:00
|
|
|
int xmssmt_core_sign_open(const xmss_params *params,
|
|
|
|
unsigned char *m, unsigned long long *mlen,
|
2017-08-03 16:38:34 +01:00
|
|
|
const unsigned char *sm, unsigned long long smlen,
|
|
|
|
const unsigned char *pk);
|
2017-06-02 13:45:16 +01:00
|
|
|
#endif
|