From 45124582e3b964800f0be1f88773dd6f2cafc672 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 10 Jan 2016 00:51:48 -0500 Subject: 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 --- src/lib/modes/aead/siv/siv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/modes/aead/siv/siv.h') diff --git a/src/lib/modes/aead/siv/siv.h b/src/lib/modes/aead/siv/siv.h index 8336026cb..d46c7dcfd 100644 --- a/src/lib/modes/aead/siv/siv.h +++ b/src/lib/modes/aead/siv/siv.h @@ -67,7 +67,7 @@ class BOTAN_DLL SIV_Mode : public AEAD_Mode /** * SIV Encryption */ -class BOTAN_DLL SIV_Encryption : public SIV_Mode +class BOTAN_DLL SIV_Encryption final : public SIV_Mode { public: /** @@ -86,7 +86,7 @@ class BOTAN_DLL SIV_Encryption : public SIV_Mode /** * SIV Decryption */ -class BOTAN_DLL SIV_Decryption : public SIV_Mode +class BOTAN_DLL SIV_Decryption final : public SIV_Mode { public: /** -- cgit v1.2.3