mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
556 B
C
26 lines
556 B
C
#ifndef LIBNTRUP_NTRU_H
|
|
#define LIBNTRUP_NTRU_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "ntru_api.h"
|
|
|
|
void ntru_init(void);
|
|
|
|
|
|
int crypto_kem_enc(unsigned char *cstr, unsigned char *k, const unsigned char *pk);
|
|
|
|
int crypto_kem_dec(unsigned char *k, const unsigned char *cstr, const unsigned char *sk);
|
|
|
|
int crypto_kem_keypair(unsigned char *pk, unsigned char * sk);
|
|
|
|
#define crypto_kem_SECRETKEYBYTES 1600
|
|
#define crypto_kem_PUBLICKEYBYTES 1218
|
|
#define crypto_kem_CIPHERTEXTBYTES 1047
|
|
#define CRYPTO_BYTES 32
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif |