/** * @file wots.h * @brief WOTS+ Public address, Signature, and Verification support. * @details Mochimo's implementation of WOTS+ is derived from the XMSS * reference implementation written by Andreas Huelsing and Joost Rijneveld * of the Crypto Forum Research Group: * > "XMSS: Extended Hash-Based Signatures"
* > https://datatracker.ietf.org/doc/draft-irtf-cfrg-xmss-hash-based-signatures/draft-irtf-cfrg-xmss-hash-based-signatures-11 * >
Update 12/11/2018 - the above RFC was moved from Draft status to * > published RFC, and can now be found here:
* > "XMSS: eXtended Merkle Signature Scheme"
* > * The reference implementation is permanently available at * * under the CC0 1.0 Universal Public Domain Dedication. For more * information on that license, please refer to * * @copyright Adequate Systems LLC, 2018-2022. All Rights Reserved. *
For license information, please refer to ../LICENSE.md */ /* include guard */ #ifndef MOCHIMO_WOTS_H #define MOCHIMO_WOTS_H #include "extint.h" /* for word types */ /* Wots specific paramters */ #define PARAMSN 32 #define WOTSW 16 #define WOTSLOGW 4 #define WOTSLEN2 3 #define WOTSLEN1 (8 * PARAMSN / WOTSLOGW) #define WOTSLEN (WOTSLEN1 + WOTSLEN2) #define WOTSSIGBYTES (WOTSLEN * PARAMSN) /* C/C++ compatible function prototypes */ #ifdef __cplusplus extern "C" { #endif void wots_sign(word8 *sig, const word8 *msg, const word8 *seed, const word8 *pub_seed, word32 addr[8]); void wots_pkgen(word8 *pk, const word8 *seed, const word8 *pub_seed, word32 addr[8]); void wots_pk_from_sig(word8 *pk, const word8 *sig, const word8 *msg, const word8 *pub_seed, word32 addr[8]); #ifdef __cplusplus } /* end extern "C" */ #endif /* end include guard */ #endif