mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-27 09:51:30 +00:00
0d7743d576
* Update NTRU version: https://github.com/jschanck/ntru/tree/485dde03 * Fixed ntruhrss701/clean/Makefile.Microsoft_nmake
23 lines
706 B
C
23 lines
706 B
C
#ifndef OWCPA_H
|
|
#define OWCPA_H
|
|
|
|
#include "params.h"
|
|
#include "poly.h"
|
|
|
|
void PQCLEAN_NTRUHRSS701_CLEAN_owcpa_samplemsg(unsigned char msg[NTRU_OWCPA_MSGBYTES],
|
|
const unsigned char seed[NTRU_SEEDBYTES]);
|
|
|
|
void PQCLEAN_NTRUHRSS701_CLEAN_owcpa_keypair(unsigned char *pk,
|
|
unsigned char *sk,
|
|
const unsigned char seed[NTRU_SEEDBYTES]);
|
|
|
|
void PQCLEAN_NTRUHRSS701_CLEAN_owcpa_enc(unsigned char *c,
|
|
const poly *r,
|
|
const poly *m,
|
|
const unsigned char *pk);
|
|
|
|
int PQCLEAN_NTRUHRSS701_CLEAN_owcpa_dec(unsigned char *rm,
|
|
const unsigned char *ciphertext,
|
|
const unsigned char *secretkey);
|
|
#endif
|