Revision 059e024fd038c0d9947b90feb53acdc5ed6d4cbe authored by Matthias J. Kannwischer on 21 September 2022, 07:24:02 UTC, committed by GitHub on 21 September 2022, 07:24:02 UTC
1 parent 26f810d
Raw File
api.h
#ifndef PICNIC3_L1_FS_API_H
#define PICNIC3_L1_FS_API_H

#define CRYPTO_SECRETKEYBYTES (1 + 2 * 17 + 17)
#define CRYPTO_PUBLICKEYBYTES (1 + 2 * 17)
#define CRYPTO_BYTES (4 + 14608)
#define CRYPTO_ALGNAME "picnic3l1fs"
#define CRYPTO_DETERMINISTIC 1

#include <stddef.h>

int crypto_sign_keypair(unsigned char* pk, unsigned char* sk);
int crypto_sign(unsigned char* sm, size_t* smlen, const unsigned char* m,
                unsigned long long mlen, const unsigned char* sk);
int crypto_sign_open(unsigned char* m, size_t* mlen, const unsigned char* sm,
                     unsigned long long smlen, const unsigned char* pk);

#endif
back to top