2019-01-15 15:03:38 +00:00
|
|
|
#ifndef API_H
|
|
|
|
#define API_H
|
|
|
|
|
2019-03-05 13:14:47 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2019-01-15 15:03:38 +00:00
|
|
|
#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-03-05 13:14:47 +00:00
|
|
|
int PQCLEAN_KYBER768_CLEAN_crypto_kem_keypair(uint8_t *pk, uint8_t *sk);
|
2019-01-15 15:03:38 +00:00
|
|
|
|
2019-03-05 13:14:47 +00:00
|
|
|
int PQCLEAN_KYBER768_CLEAN_crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk);
|
2019-01-15 15:03:38 +00:00
|
|
|
|
2019-03-05 13:14:47 +00:00
|
|
|
int PQCLEAN_KYBER768_CLEAN_crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk);
|
2019-01-15 15:03:38 +00:00
|
|
|
|
|
|
|
#endif
|