2019-01-15 15:03:38 +00:00
|
|
|
#ifndef API_H
|
|
|
|
#define API_H
|
|
|
|
|
|
|
|
#include "params.h"
|
|
|
|
|
2019-01-15 15:34:01 +00:00
|
|
|
#define CRYPTO_SECRETKEYBYTES KYBER_SECRETKEYBYTES
|
|
|
|
#define CRYPTO_PUBLICKEYBYTES KYBER_PUBLICKEYBYTES
|
2019-01-15 15:03:38 +00:00
|
|
|
#define CRYPTO_CIPHERTEXTBYTES KYBER_CIPHERTEXTBYTES
|
2019-01-15 15:34:01 +00:00
|
|
|
#define CRYPTO_BYTES KYBER_SYMBYTES
|
2019-01-15 15:03:38 +00:00
|
|
|
|
|
|
|
#define CRYPTO_ALGNAME "Kyber768"
|
|
|
|
|
2019-01-22 16:38:22 +00:00
|
|
|
int PQCLEAN_KYBER768_crypto_kem_keypair(unsigned char *pk, unsigned char *sk);
|
2019-01-15 15:03:38 +00:00
|
|
|
|
2019-02-14 14:30:55 +00:00
|
|
|
int PQCLEAN_KYBER768_crypto_kem_enc(unsigned char *ct, unsigned char *ss, const unsigned char *pk);
|
2019-01-15 15:03:38 +00:00
|
|
|
|
2019-02-14 14:30:55 +00:00
|
|
|
int PQCLEAN_KYBER768_crypto_kem_dec(unsigned char *ss, const unsigned char *ct, const unsigned char *sk);
|
2019-01-15 15:03:38 +00:00
|
|
|
|
|
|
|
#endif
|