Botan
2.1.0
Crypto and TLS for C++11
|
#include <xmss_wots_common_ops.h>
Public Member Functions | |
XMSS_WOTS_Common_Ops (XMSS_WOTS_Parameters::ots_algorithm_t oid) | |
Protected Member Functions | |
void | chain (secure_vector< uint8_t > &result, size_t start_idx, size_t steps, XMSS_Address &adrs, const secure_vector< uint8_t > &seed) |
Protected Attributes | |
XMSS_Hash | m_hash |
XMSS_WOTS_Parameters | m_wots_params |
Operations shared by XMSS WOTS signature generation and verification operations.
Definition at line 23 of file xmss_wots_common_ops.h.
|
inline |
Definition at line 26 of file xmss_wots_common_ops.h.
|
protected |
Algorithm 2: Chaining Function.
[out] | result | Contains the n-byte input string "x" upon call to chain(), that will be replaced with the value obtained by iterating the cryptographic hash function "F" steps times on the input x using the outputs of the PRNG "G". |
[in] | start_idx | The start index. |
[in] | steps | A number of steps. |
[in] | adrs | An OTS Hash Address. |
[in] | seed | A Seed. |
Definition at line 16 of file xmss_wots_common_ops.cpp.
References Botan::XMSS_Address::bytes(), Botan::XMSS_Hash::f(), Botan::XMSS_Address::Key_Mode, m_hash, m_wots_params, Botan::XMSS_Address::Mask_Mode, Botan::XMSS_Hash::prf(), Botan::XMSS_Address::set_hash_address(), Botan::XMSS_Address::set_key_mask_mode(), Botan::XMSS_WOTS_Parameters::wots_parameter(), and Botan::xor_buf().
|
protected |
Definition at line 50 of file xmss_wots_common_ops.h.
Referenced by chain().
|
protected |
Definition at line 49 of file xmss_wots_common_ops.h.
Referenced by chain(), and Botan::XMSS_WOTS_Signature_Operation::sign().