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-03-05 13:14:47 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2019-01-15 15:03:38 +00:00
|
|
|
#include "params.h"
|
|
|
|
|
2019-03-19 13:28:15 +00:00
|
|
|
#define PQCLEAN_KYBER768_CLEAN_CRYPTO_SECRETKEYBYTES KYBER_SECRETKEYBYTES
|
|
|
|
#define PQCLEAN_KYBER768_CLEAN_CRYPTO_PUBLICKEYBYTES KYBER_PUBLICKEYBYTES
|
|
|
|
#define PQCLEAN_KYBER768_CLEAN_CRYPTO_CIPHERTEXTBYTES KYBER_CIPHERTEXTBYTES
|
|
|
|
#define PQCLEAN_KYBER768_CLEAN_CRYPTO_BYTES KYBER_SYMBYTES
|
2019-01-15 15:03:38 +00:00
|
|
|
|
2019-03-19 13:28:15 +00:00
|
|
|
#define PQCLEAN_KYBER768_CLEAN_CRYPTO_ALGNAME "Kyber768"
|
2019-01-15 15:03:38 +00:00
|
|
|
|
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
|