gestumblinde

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

utils.h (353B)


      1 #ifndef UTILS_H
      2 #define UTILS_H
      3 
      4 #include <assert.h>
      5 #include <endian.h>
      6 #include <stdint.h>
      7 #include <stdlib.h>
      8 
      9 uint64_t to_int(const uint8_t *x, const size_t n);
     10 void to_bytes(uint8_t *bytes, const size_t len, uint64_t in);
     11 void base_2b(uint64_t *out, const uint8_t *x, const size_t xsz,
     12              const uint64_t b, const size_t out_len);
     13 
     14 #endif