2019-01-16 09:15:18 +00:00
|
|
|
#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"
|
|
|
|
|
2019-01-22 16:38:22 +00:00
|
|
|
int PQCLEAN_DILITHIUMIII_crypto_sign_keypair(unsigned char *pk,
|
2019-02-13 16:45:09 +00:00
|
|
|
unsigned char *sk);
|
2019-01-16 09:15:18 +00:00
|
|
|
|
2019-01-22 16:38:22 +00:00
|
|
|
int PQCLEAN_DILITHIUMIII_crypto_sign(unsigned char *sm,
|
|
|
|
unsigned long long *smlen,
|
|
|
|
const unsigned char *msg,
|
|
|
|
unsigned long long len,
|
|
|
|
const unsigned char *sk);
|
2019-01-16 09:15:18 +00:00
|
|
|
|
2019-01-22 16:38:22 +00:00
|
|
|
int PQCLEAN_DILITHIUMIII_crypto_sign_open(unsigned char *m,
|
2019-02-13 16:45:09 +00:00
|
|
|
unsigned long long *mlen,
|
|
|
|
const unsigned char *sm,
|
|
|
|
unsigned long long smlen,
|
|
|
|
const unsigned char *pk);
|
2019-01-16 09:15:18 +00:00
|
|
|
|
|
|
|
#endif
|