mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-27 09:51:30 +00:00
e72fd489ba
* Initial ntruhps2048509 implementation * Turn compile-time #if's into runtime if's * Test vector hash * Resolve linter complaints * Apply astyle * Address Windows compiler complaints * Address more Windows compiler complaints * More Windows compiler complaints * Apply astyle * Add -Wmissing-prototypes Co-Authored-By: dstebila <dstebila@users.noreply.github.com> * Fix -Wmissing-prototypes errors, update LICENSE
21 lines
623 B
C
Executable File
21 lines
623 B
C
Executable File
#ifndef OWCPA_H
|
|
#define OWCPA_H
|
|
|
|
#include "params.h"
|
|
|
|
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,
|
|
const unsigned char *rm,
|
|
const unsigned char *pk);
|
|
|
|
int PQCLEAN_NTRUHPS2048509_CLEAN_owcpa_dec(unsigned char *rm,
|
|
const unsigned char *ciphertext,
|
|
const unsigned char *secretkey);
|
|
#endif
|