aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/xmss
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/xmss')
-rw-r--r--src/lib/pubkey/xmss/atomic.h2
-rw-r--r--src/lib/pubkey/xmss/xmss_address.h2
-rw-r--r--src/lib/pubkey/xmss/xmss_hash.h2
-rw-r--r--src/lib/pubkey/xmss/xmss_index_registry.h2
-rw-r--r--src/lib/pubkey/xmss/xmss_signature.h2
-rw-r--r--src/lib/pubkey/xmss/xmss_tools.h2
-rw-r--r--src/lib/pubkey/xmss/xmss_verification_operation.h5
-rw-r--r--src/lib/pubkey/xmss/xmss_wots_addressed_privatekey.h6
-rw-r--r--src/lib/pubkey/xmss/xmss_wots_parameters.h2
-rw-r--r--src/lib/pubkey/xmss/xmss_wots_publickey.h2
10 files changed, 13 insertions, 14 deletions
diff --git a/src/lib/pubkey/xmss/atomic.h b/src/lib/pubkey/xmss/atomic.h
index 760ffddc3..d2e65c104 100644
--- a/src/lib/pubkey/xmss/atomic.h
+++ b/src/lib/pubkey/xmss/atomic.h
@@ -20,7 +20,7 @@ template <typename T>
* std::vector. The construction of instances of this wrapper is NOT atomic
* and needs to be properly guarded.
**/
-class Atomic
+class Atomic final
{
public:
Atomic() = default;
diff --git a/src/lib/pubkey/xmss/xmss_address.h b/src/lib/pubkey/xmss/xmss_address.h
index 3838ed48f..f00343ca3 100644
--- a/src/lib/pubkey/xmss/xmss_address.h
+++ b/src/lib/pubkey/xmss/xmss_address.h
@@ -18,7 +18,7 @@ namespace Botan {
* OTS-Hash-Address can be called depending on the type currently
* assigned to the XMSS address using set_type().
**/
-class XMSS_Address
+class XMSS_Address final
{
public:
/**
diff --git a/src/lib/pubkey/xmss/xmss_hash.h b/src/lib/pubkey/xmss/xmss_hash.h
index 7dcfb8465..16380f8f1 100644
--- a/src/lib/pubkey/xmss/xmss_hash.h
+++ b/src/lib/pubkey/xmss/xmss_hash.h
@@ -16,7 +16,7 @@ namespace Botan {
* A collection of pseudorandom hash functions required for XMSS and WOTS
* computations.
**/
-class XMSS_Hash
+class XMSS_Hash final
{
public:
XMSS_Hash(const std::string& h_func_name);
diff --git a/src/lib/pubkey/xmss/xmss_index_registry.h b/src/lib/pubkey/xmss/xmss_index_registry.h
index d7448693a..27a68631a 100644
--- a/src/lib/pubkey/xmss/xmss_index_registry.h
+++ b/src/lib/pubkey/xmss/xmss_index_registry.h
@@ -18,7 +18,7 @@ namespace Botan {
* A registry for XMSS private keys, keeps track of the leaf index for
* independend copies of the same key.
**/
-class XMSS_Index_Registry
+class XMSS_Index_Registry final
{
public:
XMSS_Index_Registry(const XMSS_Index_Registry&) = delete;
diff --git a/src/lib/pubkey/xmss/xmss_signature.h b/src/lib/pubkey/xmss/xmss_signature.h
index 493697d51..838aae2e8 100644
--- a/src/lib/pubkey/xmss/xmss_signature.h
+++ b/src/lib/pubkey/xmss/xmss_signature.h
@@ -17,7 +17,7 @@
namespace Botan {
-class XMSS_Signature
+class XMSS_Signature final
{
public:
/**
diff --git a/src/lib/pubkey/xmss/xmss_tools.h b/src/lib/pubkey/xmss/xmss_tools.h
index 564a40c52..306598187 100644
--- a/src/lib/pubkey/xmss/xmss_tools.h
+++ b/src/lib/pubkey/xmss/xmss_tools.h
@@ -19,7 +19,7 @@ namespace Botan {
* Helper tools for low level byte operations required
* for the XMSS implementation.
**/
- class XMSS_Tools
+ class XMSS_Tools final
{
public:
XMSS_Tools(const XMSS_Tools&) = delete;
diff --git a/src/lib/pubkey/xmss/xmss_verification_operation.h b/src/lib/pubkey/xmss/xmss_verification_operation.h
index 1b42bb158..6e8469392 100644
--- a/src/lib/pubkey/xmss/xmss_verification_operation.h
+++ b/src/lib/pubkey/xmss/xmss_verification_operation.h
@@ -24,9 +24,8 @@ namespace Botan {
* Provides signature verification capabilities for Extended Hash-Based
* Signatures (XMSS).
**/
- class XMSS_Verification_Operation
- final : public virtual PK_Ops::Verification,
- public XMSS_Common_Ops
+ class XMSS_Verification_Operation final : public virtual PK_Ops::Verification,
+ public XMSS_Common_Ops
{
public:
XMSS_Verification_Operation(
diff --git a/src/lib/pubkey/xmss/xmss_wots_addressed_privatekey.h b/src/lib/pubkey/xmss/xmss_wots_addressed_privatekey.h
index e18c69699..62beaaece 100644
--- a/src/lib/pubkey/xmss/xmss_wots_addressed_privatekey.h
+++ b/src/lib/pubkey/xmss/xmss_wots_addressed_privatekey.h
@@ -21,9 +21,9 @@ namespace Botan {
* needs to be stored together with the key and passed to the
* XMSS_WOTS_Signature_Operation() on creation.
**/
-class XMSS_WOTS_Addressed_PrivateKey
- final : public virtual XMSS_WOTS_Addressed_PublicKey,
- public virtual Private_Key
+class XMSS_WOTS_Addressed_PrivateKey final :
+ public virtual XMSS_WOTS_Addressed_PublicKey,
+ public virtual Private_Key
{
public:
XMSS_WOTS_Addressed_PrivateKey(const XMSS_WOTS_PrivateKey& private_key)
diff --git a/src/lib/pubkey/xmss/xmss_wots_parameters.h b/src/lib/pubkey/xmss/xmss_wots_parameters.h
index 0e16b900b..0c2825017 100644
--- a/src/lib/pubkey/xmss/xmss_wots_parameters.h
+++ b/src/lib/pubkey/xmss/xmss_wots_parameters.h
@@ -24,7 +24,7 @@ namespace Botan {
* https://datatracker.ietf.org/doc/
* draft-irtf-cfrg-xmss-hash-based-signatures/?include_text=1
**/
-class XMSS_WOTS_Parameters
+class XMSS_WOTS_Parameters final
{
public:
enum ots_algorithm_t
diff --git a/src/lib/pubkey/xmss/xmss_wots_publickey.h b/src/lib/pubkey/xmss/xmss_wots_publickey.h
index aa30bd304..1c7366f0b 100644
--- a/src/lib/pubkey/xmss/xmss_wots_publickey.h
+++ b/src/lib/pubkey/xmss/xmss_wots_publickey.h
@@ -32,7 +32,7 @@ typedef std::vector<secure_vector<uint8_t>> wots_keysig_t;
class BOTAN_PUBLIC_API(2,0) XMSS_WOTS_PublicKey : virtual public Public_Key
{
public:
- class TreeSignature
+ class TreeSignature final
{
public:
TreeSignature() = default;