/* * This file is part of the optimized implementation of the Picnic signature scheme. * See the accompanying documentation for complete details. * * The code is provided under the MIT license, see LICENSE for * more details. * SPDX-License-Identifier: MIT */ #ifndef PICNIC_L5_UR_API_H #define PICNIC_L5_UR_API_H #define CRYPTO_SECRETKEYBYTES (1 + 2 * 32 + 32) #define CRYPTO_PUBLICKEYBYTES (1 + 2 * 32) #define CRYPTO_BYTES (4 + 209506) #define CRYPTO_ALGNAME "picnicl5ur" #define CRYPTO_DETERMINISTIC 1 int crypto_sign_keypair(unsigned char* pk, unsigned char* sk); int crypto_sign(unsigned char* sm, unsigned long long* smlen, const unsigned char* m, unsigned long long mlen, const unsigned char* sk); int crypto_sign_open(unsigned char* m, unsigned long long* mlen, const unsigned char* sm, unsigned long long smlen, const unsigned char* pk); #endif