2019-04-13 18:08:07 +01:00
|
|
|
#ifndef OWCPA_H
|
|
|
|
#define OWCPA_H
|
|
|
|
|
|
|
|
#include "params.h"
|
2020-08-15 19:26:25 +01:00
|
|
|
#include "poly.h"
|
2019-04-13 18:08:07 +01:00
|
|
|
|
|
|
|
void PQCLEAN_NTRUHPS2048509_CLEAN_owcpa_samplemsg(unsigned char msg[NTRU_OWCPA_MSGBYTES],
|
|
|
|
const unsigned char seed[NTRU_SEEDBYTES]);
|
|
|
|
|
|
|
|
void PQCLEAN_NTRUHPS2048509_CLEAN_owcpa_keypair(unsigned char *pk,
|
|
|
|
unsigned char *sk,
|
|
|
|
const unsigned char seed[NTRU_SEEDBYTES]);
|
|
|
|
|
|
|
|
void PQCLEAN_NTRUHPS2048509_CLEAN_owcpa_enc(unsigned char *c,
|
2020-08-15 19:26:25 +01:00
|
|
|
const poly *r,
|
|
|
|
const poly *m,
|
2019-04-13 18:08:07 +01:00
|
|
|
const unsigned char *pk);
|
|
|
|
|
|
|
|
int PQCLEAN_NTRUHPS2048509_CLEAN_owcpa_dec(unsigned char *rm,
|
|
|
|
const unsigned char *ciphertext,
|
|
|
|
const unsigned char *secretkey);
|
|
|
|
#endif
|