14 #include <botan/internal/xmss_wots_verification_operation.h>
21 m_pub_key(public_key),
33 m_msg_buf.size() == 0,
34 "XMSS WOTS only supports one message part of size n.");
36 for(
size_t i = 0; i < msg_len; i++)
38 m_msg_buf.push_back(msg[i]);
48 "Invalid signature size.");
51 signature.reserve(sig_len);
55 while(signature.size() < w.
len())
const XMSS_WOTS_PublicKey & public_key() const
XMSS_WOTS_Verification_Operation(const XMSS_WOTS_Addressed_PublicKey &public_key)
virtual bool is_valid_signature(const uint8_t sig[], size_t sig_len) override
size_t element_size() const
const secure_vector< uint8_t > & public_seed() const
#define BOTAN_ASSERT(expr, assertion_made)
std::vector< T, secure_allocator< T >> secure_vector
std::vector< secure_vector< uint8_t > > wots_keysig_t
const XMSS_Address & address() const
const XMSS_WOTS_Parameters & wots_parameters() const
ots_algorithm_t oid() const
const wots_keysig_t & key_data() const
void update(const uint8_t msg[], size_t msg_len) override