pqc/crypto_kem/ntruhrss701/clean/owcpa.h

20 lines
573 B
C
Raw Permalink Normal View History

2019-04-15 01:26:42 +01:00
#ifndef OWCPA_H
#define OWCPA_H
#include "params.h"
#include "poly.h"
2019-04-15 01:26:42 +01:00
void PQCLEAN_NTRUHRSS701_CLEAN_owcpa_keypair(unsigned char *pk,
unsigned char *sk,
const unsigned char seed[NTRU_SAMPLE_FG_BYTES]);
2019-04-15 01:26:42 +01:00
void PQCLEAN_NTRUHRSS701_CLEAN_owcpa_enc(unsigned char *c,
const poly *r,
const poly *m,
2019-04-15 01:26:42 +01:00
const unsigned char *pk);
int PQCLEAN_NTRUHRSS701_CLEAN_owcpa_dec(unsigned char *rm,
const unsigned char *ciphertext,
const unsigned char *secretkey);
#endif