Botan 2.1.0 Crypto and TLS for C++11

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

xmss_wots_verification_operation.h
Go to the documentation of this file.
1 /**
2 * XMSS_WOTS_Verification_Operation.h
3 * (C) 2016 Matthias Gierlings
4 *
5 * Botan is released under the Simplified BSD License (see license.txt)
6 **/
7
8 #ifndef BOTAN_XMSS_WOTS_VERIFICATION_OPERATION_H__
9 #define BOTAN_XMSS_WOTS_VERIFICATION_OPERATION_H__
10
11 #include <cstddef>
12 #include <iterator>
13 #include <botan/types.h>
14 #include <botan/pk_ops.h>
15 #include <botan/internal/xmss_wots_addressed_publickey.h>
16 #include <botan/internal/xmss_wots_common_ops.h>
17
18 namespace Botan {
19
20 /**
21 * Provides signature verification capabilities for Winternitz One Time
22 * Signatures used in Extended Merkle Tree Signatures (XMSS).
23 *
24 * This operation is not intended for stand-alone use and thus not registered
25 * in the Botan algorithm registry.
26 **/
27 class XMSS_WOTS_Verification_Operation
28 : public virtual PK_Ops::Verification,
29 public XMSS_WOTS_Common_Ops
30 {
31 public:
32 XMSS_WOTS_Verification_Operation(
33 const XMSS_WOTS_Addressed_PublicKey& public_key);
34
35 virtual ~XMSS_WOTS_Verification_Operation() = default;
36
37 virtual bool is_valid_signature(const uint8_t sig[],
38 size_t sig_len) override;
39
40 void update(const uint8_t msg[], size_t msg_len) override;
41
42 private:
43 XMSS_WOTS_Addressed_PublicKey m_pub_key;
44 secure_vector<uint8_t> m_msg_buf;
45 };
46
47 }
48
49 #endif
Botan::XMSS_WOTS_Verification_Operation::XMSS_WOTS_Verification_Operation
XMSS_WOTS_Verification_Operation(const XMSS_WOTS_Addressed_PublicKey &public_key)
Definition: xmss_wots_verification_operation.cpp:18
Botan::XMSS_WOTS_Verification_Operation::is_valid_signature
virtual bool is_valid_signature(const uint8_t sig[], size_t sig_len) override
Definition: xmss_wots_verification_operation.cpp:42
Botan::XMSS_WOTS_Common_Ops
Definition: xmss_wots_common_ops.h:23
Botan::XMSS_WOTS_Addressed_PublicKey
Definition: xmss_wots_addressed_publickey.h:24
Botan::secure_vector
std::vector< T, secure_allocator< T >> secure_vector
Definition: secmem.h:121
Botan::XMSS_WOTS_Verification_Operation::~XMSS_WOTS_Verification_Operation
virtual ~XMSS_WOTS_Verification_Operation()=default
Botan
Definition: alg_id.cpp:13
Botan::XMSS_WOTS_Verification_Operation
Definition: xmss_wots_verification_operation.h:27
Botan::XMSS_WOTS_Verification_Operation::update
void update(const uint8_t msg[], size_t msg_len) override
Definition: xmss_wots_verification_operation.cpp:29
Botan::PK_Ops::Verification
Definition: pk_ops.h:64