gestumblinde

Gestumblinde - reference implementation of SLH-DSA
git clone git://www.tkruger.se/gestumblinde.git
Log | Files | Refs | README

xmss.h (730B)


      1 #ifndef XMSS_H
      2 #define XMSS_H
      3 
      4 #include <assert.h>
      5 #include <endian.h>
      6 #include <stdint.h>
      7 #include <stdlib.h>
      8 #include <strings.h>
      9 
     10 #include "context.h"
     11 #include "wotsp.h"
     12 
     13 int xmss_node(uint8_t *out, const uint8_t sk_seed[ENN], const uint64_t i,
     14               const uint64_t z, const uint8_t pk_seed[ENN],
     15               uint32_t adrs[ADRS_LEN]);
     16 
     17 int xmss_sign(uint8_t *out, const uint8_t m[ENN], const uint8_t sk_seed[ENN],
     18               const uint64_t idx, const uint8_t pk_seed[ENN],
     19               uint32_t adrs[ADRS_LEN]);
     20 
     21 int xmss_pk_from_sig(uint8_t *out, const uint64_t idx, const uint8_t *sig,
     22                      const uint8_t m[ENN], const uint8_t pk_seed[ENN],
     23                      uint32_t adrs[ADRS_LEN]);
     24 #endif