/* Copyright (c) 2023, Google LLC * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef OPENSSL_HEADER_CRYPTO_SPX_PARAMS_H #define OPENSSL_HEADER_CRYPTO_SPX_PARAMS_H #if defined(__cplusplus) extern "C" { #endif // Output length of the hash function. #define SPX_N … // Total height of the tree structure. #define SPX_FULL_HEIGHT … // Number of subtree layers. #define SPX_D … // Height of the trees on each layer #define SPX_TREE_HEIGHT … // Height of each individual FORS tree. #define SPX_FORS_HEIGHT … // Total number of FORS tree used. #define SPX_FORS_TREES … // Size of a FORS signature #define SPX_FORS_BYTES … // Winternitz parameter and derived values #define SPX_WOTS_W … #define SPX_WOTS_LOG_W … #define SPX_WOTS_LEN1 … #define SPX_WOTS_LEN2 … #define SPX_WOTS_LEN … #define SPX_WOTS_BYTES … // XMSS sizes #define SPX_XMSS_BYTES … // Size of the message digest (NOTE: This is only correct for the SHA256 params // here) #define SPX_DIGEST_SIZE … // Compressed address size when using SHA256 #define SPX_SHA256_ADDR_BYTES … // Size of the FORS message hash #define SPX_FORS_MSG_BYTES … #define SPX_TREE_BITS … #define SPX_TREE_BYTES … #define SPX_LEAF_BITS … #define SPX_LEAF_BYTES … #if defined(__cplusplus) } // extern C #endif #endif // OPENSSL_HEADER_CRYPTO_SPX_PARAMS_H