miroir de
https://github.com/henrydcase/pqc.git
synchronisé 2024-12-03 12:54:05 +00:00
28 lignes
691 B
C
28 lignes
691 B
C
#ifndef API_H
|
|
#define API_H
|
|
|
|
#define MODE 2
|
|
|
|
#define CRYPTO_PUBLICKEYBYTES 1472U
|
|
#define CRYPTO_SECRETKEYBYTES 3504U
|
|
#define CRYPTO_BYTES 2701U
|
|
|
|
#define CRYPTO_ALGNAME "Dilithium-III"
|
|
|
|
int PQCLEAN_DILITHIUMIII_CLEAN_crypto_sign_keypair(unsigned char *pk,
|
|
unsigned char *sk);
|
|
|
|
int PQCLEAN_DILITHIUMIII_CLEAN_crypto_sign(unsigned char *sm,
|
|
unsigned long long *smlen,
|
|
const unsigned char *msg,
|
|
unsigned long long len,
|
|
const unsigned char *sk);
|
|
|
|
int PQCLEAN_DILITHIUMIII_CLEAN_crypto_sign_open(unsigned char *m,
|
|
unsigned long long *mlen,
|
|
const unsigned char *sm,
|
|
unsigned long long smlen,
|
|
const unsigned char *pk);
|
|
|
|
#endif
|