mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
29 lines
710 B
C
29 lines
710 B
C
#ifndef small_h
|
|
#define small_h
|
|
|
|
#include <sodium/crypto_int8.h>
|
|
#include <sodium/crypto_int32.h>
|
|
|
|
typedef crypto_int8 small;
|
|
|
|
#define small_encode crypto_kem_sntrup4591761_ref_small_encode
|
|
extern void
|
|
small_encode(unsigned char *, const small *);
|
|
|
|
#define small_decode crypto_kem_sntrup4591761_ref_small_decode
|
|
extern void
|
|
small_decode(small *, const unsigned char *);
|
|
|
|
#define small_random32 crypto_kem_sntrup4591761_ref_small_random32
|
|
extern crypto_int32
|
|
small_random32(void);
|
|
|
|
#define small_random crypto_kem_sntrup4591761_ref_small_random
|
|
extern void
|
|
small_random(small *);
|
|
|
|
#define small_random_weightw crypto_kem_sntrup4591761_ref_small_random_weightw
|
|
extern void
|
|
small_random_weightw(small *);
|
|
|
|
#endif
|