Files

28 lines
986 B
C

#ifndef PQCLEAN_HQC256_CLEAN_API_H
#define PQCLEAN_HQC256_CLEAN_API_H
/**
* @file api.h
* @brief NIST KEM API used by the HQC_KEM IND-CCA2 scheme
*/
#include <stdint.h>
#define PQCLEAN_HQC256_CLEAN_CRYPTO_ALGNAME "HQC-256"
#define PQCLEAN_HQC256_CLEAN_CRYPTO_SECRETKEYBYTES 7317
#define PQCLEAN_HQC256_CLEAN_CRYPTO_PUBLICKEYBYTES 7245
#define PQCLEAN_HQC256_CLEAN_CRYPTO_BYTES 64
#define PQCLEAN_HQC256_CLEAN_CRYPTO_CIPHERTEXTBYTES 14421
// As a technicality, the public key is appended to the secret key in order to respect the NIST API.
// Without this constraint, PQCLEAN_HQC256_CLEAN_CRYPTO_SECRETKEYBYTES would be defined as 32
int PQCLEAN_HQC256_CLEAN_crypto_kem_keypair(uint8_t *pk, uint8_t *sk);
int PQCLEAN_HQC256_CLEAN_crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk);
int PQCLEAN_HQC256_CLEAN_crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk);
#endif