2019-03-19 14:03:24 +00:00
|
|
|
#ifndef PQCLEAN_KYBER768_CLEAN_API_H
|
|
|
|
#define PQCLEAN_KYBER768_CLEAN_API_H
|
2019-01-15 15:03:38 +00:00
|
|
|
|
2019-09-10 10:45:01 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2019-05-06 13:50:27 +01:00
|
|
|
#define PQCLEAN_KYBER768_CLEAN_CRYPTO_SECRETKEYBYTES 2400
|
|
|
|
#define PQCLEAN_KYBER768_CLEAN_CRYPTO_PUBLICKEYBYTES 1184
|
|
|
|
#define PQCLEAN_KYBER768_CLEAN_CRYPTO_CIPHERTEXTBYTES 1088
|
|
|
|
#define PQCLEAN_KYBER768_CLEAN_CRYPTO_BYTES 32
|
2019-03-19 13:28:15 +00:00
|
|
|
#define PQCLEAN_KYBER768_CLEAN_CRYPTO_ALGNAME "Kyber768"
|
2019-01-15 15:03:38 +00:00
|
|
|
|
2019-09-10 10:45:01 +01:00
|
|
|
int PQCLEAN_KYBER768_CLEAN_crypto_kem_keypair(uint8_t *pk, uint8_t *sk);
|
2019-05-06 13:50:27 +01:00
|
|
|
|
2019-09-10 10:45:01 +01: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-09-10 10:45:01 +01: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
|