diff options
author | Jack Lloyd <[email protected]> | 2016-01-10 00:51:48 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-01-10 00:51:48 -0500 |
commit | 45124582e3b964800f0be1f88773dd6f2cafc672 (patch) | |
tree | 9bd788556ddf9731e466b7f24a16e604f662ea24 /src/lib/block/aes_ni | |
parent | 672d29570e55686b90126b5d6f5d337ddf0b8f04 (diff) |
Add final attribute to many classes
In some cases this can offer better optimization, via devirtualization.
And it lets the user know the class is not intended for derivation.
Some discussion in GH #402
Diffstat (limited to 'src/lib/block/aes_ni')
-rw-r--r-- | src/lib/block/aes_ni/aes_ni.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/block/aes_ni/aes_ni.h b/src/lib/block/aes_ni/aes_ni.h index 6f995490a..296fd7fcc 100644 --- a/src/lib/block/aes_ni/aes_ni.h +++ b/src/lib/block/aes_ni/aes_ni.h @@ -15,7 +15,7 @@ namespace Botan { /** * AES-128 using AES-NI */ -class BOTAN_DLL AES_128_NI : public Block_Cipher_Fixed_Params<16, 16> +class BOTAN_DLL AES_128_NI final : public Block_Cipher_Fixed_Params<16, 16> { public: size_t parallelism() const override { return 4; } @@ -35,7 +35,7 @@ class BOTAN_DLL AES_128_NI : public Block_Cipher_Fixed_Params<16, 16> /** * AES-192 using AES-NI */ -class BOTAN_DLL AES_192_NI : public Block_Cipher_Fixed_Params<16, 24> +class BOTAN_DLL AES_192_NI final : public Block_Cipher_Fixed_Params<16, 24> { public: size_t parallelism() const override { return 4; } @@ -55,7 +55,7 @@ class BOTAN_DLL AES_192_NI : public Block_Cipher_Fixed_Params<16, 24> /** * AES-256 using AES-NI */ -class BOTAN_DLL AES_256_NI : public Block_Cipher_Fixed_Params<16, 32> +class BOTAN_DLL AES_256_NI final : public Block_Cipher_Fixed_Params<16, 32> { public: size_t parallelism() const override { return 4; } |