12 #ifndef BOTAN_NEWHOPE_H_
13 #define BOTAN_NEWHOPE_H_
15 #include <botan/types.h>
19 class RandomNumberGenerator;
31 uint16_t coeffs[1024];
67 RandomNumberGenerator& rng,
73 const uint8_t* received,
74 RandomNumberGenerator& rng,
78 void BOTAN_PUBLIC_API(2,0)
newhope_shareda(uint8_t sharedkey[NEWHOPE_SHARED_KEY_BYTES],
79 const newhope_poly* ska,
80 const uint8_t* received,
#define BOTAN_UNSTABLE_API
void newhope_keygen(uint8_t *send, poly *sk, RandomNumberGenerator &rng, Newhope_Mode mode)
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
void newhope_sharedb(uint8_t *sharedkey, uint8_t *send, const uint8_t *received, RandomNumberGenerator &rng, Newhope_Mode mode)
void newhope_shareda(uint8_t sharedkey[], const poly *sk, const uint8_t received[], Newhope_Mode mode)