2020-08-24 13:58:55 +01:00
|
|
|
#ifndef OWCPA_H
|
|
|
|
#define OWCPA_H
|
|
|
|
|
|
|
|
#include "params.h"
|
|
|
|
#include "poly.h"
|
|
|
|
|
|
|
|
void PQCLEAN_NTRUHPS2048677_AVX2_owcpa_keypair(unsigned char *pk,
|
|
|
|
unsigned char *sk,
|
2020-11-05 23:06:01 +00:00
|
|
|
const unsigned char seed[NTRU_SAMPLE_FG_BYTES]);
|
2020-08-24 13:58:55 +01:00
|
|
|
|
|
|
|
void PQCLEAN_NTRUHPS2048677_AVX2_owcpa_enc(unsigned char *c,
|
|
|
|
const poly *r,
|
|
|
|
const poly *m,
|
|
|
|
const unsigned char *pk);
|
|
|
|
|
|
|
|
int PQCLEAN_NTRUHPS2048677_AVX2_owcpa_dec(unsigned char *rm,
|
|
|
|
const unsigned char *ciphertext,
|
|
|
|
const unsigned char *secretkey);
|
|
|
|
#endif
|