Files
Tobias Nießen 734045e8f9 Replace macros in ML-DSA-87 clean/avx2 API
I apparently forgot to replace the macros in two of the nine `api.h`
files of the ML-DSA implementations in commit
badde65788. The previous patch did indeed
fix the issue at hand, which was about missing function symbols, because
the function symbols are indeed declared in `sign.h` and defined in
`sign.c` of each implementation. However, consumers of `api.h` would
still see the old macros for the clean and the avx2 implementations of
ML-DSA-87 and thus still will not be able to construct function pointers
to the relevant functions when including these particular header files.

Refs: https://github.com/PQClean/PQClean/issues/576
Refs: https://github.com/PQClean/PQClean/pull/591
2025-04-10 19:44:04 +02:00

51 lines
1.8 KiB
C

#ifndef PQCLEAN_MLDSA87_CLEAN_API_H
#define PQCLEAN_MLDSA87_CLEAN_API_H
#include <stddef.h>
#include <stdint.h>
#define PQCLEAN_MLDSA87_CLEAN_CRYPTO_PUBLICKEYBYTES 2592
#define PQCLEAN_MLDSA87_CLEAN_CRYPTO_SECRETKEYBYTES 4896
#define PQCLEAN_MLDSA87_CLEAN_CRYPTO_BYTES 4627
#define PQCLEAN_MLDSA87_CLEAN_CRYPTO_ALGNAME "ML-DSA-87"
int PQCLEAN_MLDSA87_CLEAN_crypto_sign_keypair(uint8_t *pk, uint8_t *sk);
int PQCLEAN_MLDSA87_CLEAN_crypto_sign_signature_ctx(uint8_t *sig, size_t *siglen,
const uint8_t *m, size_t mlen,
const uint8_t *ctx, size_t ctxlen,
const uint8_t *sk);
int PQCLEAN_MLDSA87_CLEAN_crypto_sign_ctx(uint8_t *sm, size_t *smlen,
const uint8_t *m, size_t mlen,
const uint8_t *ctx, size_t ctxlen,
const uint8_t *sk);
int PQCLEAN_MLDSA87_CLEAN_crypto_sign_verify_ctx(const uint8_t *sig, size_t siglen,
const uint8_t *m, size_t mlen,
const uint8_t *ctx, size_t ctxlen,
const uint8_t *pk);
int PQCLEAN_MLDSA87_CLEAN_crypto_sign_open_ctx(uint8_t *m, size_t *mlen,
const uint8_t *sm, size_t smlen,
const uint8_t *ctx, size_t ctxlen,
const uint8_t *pk);
int PQCLEAN_MLDSA87_CLEAN_crypto_sign_signature(uint8_t *sig, size_t *siglen,
const uint8_t *m, size_t mlen,
const uint8_t *sk);
int PQCLEAN_MLDSA87_CLEAN_crypto_sign(uint8_t *sm, size_t *smlen,
const uint8_t *m, size_t mlen,
const uint8_t *sk);
int PQCLEAN_MLDSA87_CLEAN_crypto_sign_verify(const uint8_t *sig, size_t siglen,
const uint8_t *m, size_t mlen,
const uint8_t *pk);
int PQCLEAN_MLDSA87_CLEAN_crypto_sign_open(uint8_t *m, size_t *mlen,
const uint8_t *sm, size_t smlen,
const uint8_t *pk);
#endif