mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-23 16:08:59 +00:00
26 lines
1.0 KiB
C
26 lines
1.0 KiB
C
|
#ifndef PQCLEAN_HQC2563CCA2_LEAKTIME_API_H
|
||
|
#define PQCLEAN_HQC2563CCA2_LEAKTIME_API_H
|
||
|
|
||
|
/**
|
||
|
* \file api.h
|
||
|
* \brief NIST KEM API used by the HQC_KEM IND-CCA2 scheme
|
||
|
*/
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#define PQCLEAN_HQC2563CCA2_LEAKTIME_CRYPTO_ALGNAME "HQC_256_3_CCA2"
|
||
|
|
||
|
#define PQCLEAN_HQC2563CCA2_LEAKTIME_CRYPTO_SECRETKEYBYTES 8937
|
||
|
#define PQCLEAN_HQC2563CCA2_LEAKTIME_CRYPTO_PUBLICKEYBYTES 8897
|
||
|
#define PQCLEAN_HQC2563CCA2_LEAKTIME_CRYPTO_BYTES 64
|
||
|
#define PQCLEAN_HQC2563CCA2_LEAKTIME_CRYPTO_CIPHERTEXTBYTES 17777
|
||
|
|
||
|
// As a technicality, the public key is appended to the secret key in order to respect the NIST API.
|
||
|
// Without this constraint, CRYPTO_SECRETKEYBYTES would be defined as 32
|
||
|
|
||
|
int PQCLEAN_HQC2563CCA2_LEAKTIME_crypto_kem_keypair(uint8_t *pk, uint8_t *sk);
|
||
|
int PQCLEAN_HQC2563CCA2_LEAKTIME_crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk);
|
||
|
int PQCLEAN_HQC2563CCA2_LEAKTIME_crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk);
|
||
|
|
||
|
#endif
|