diff options
Diffstat (limited to 'src/lib/hash')
-rw-r--r-- | src/lib/hash/checksum/adler32/adler32.h | 2 | ||||
-rw-r--r-- | src/lib/hash/checksum/crc24/crc24.h | 2 | ||||
-rw-r--r-- | src/lib/hash/checksum/crc32/crc32.h | 2 | ||||
-rw-r--r-- | src/lib/hash/comb4p/comb4p.h | 2 | ||||
-rw-r--r-- | src/lib/hash/gost_3411/gost_3411.h | 2 | ||||
-rw-r--r-- | src/lib/hash/has160/has160.h | 2 | ||||
-rw-r--r-- | src/lib/hash/keccak/keccak.h | 2 | ||||
-rw-r--r-- | src/lib/hash/md2/md2.h | 2 | ||||
-rw-r--r-- | src/lib/hash/md4/md4.h | 7 | ||||
-rw-r--r-- | src/lib/hash/md5/md5.h | 7 | ||||
-rw-r--r-- | src/lib/hash/par_hash/par_hash.h | 2 | ||||
-rw-r--r-- | src/lib/hash/rmd128/rmd128.h | 2 | ||||
-rw-r--r-- | src/lib/hash/rmd160/rmd160.h | 2 | ||||
-rw-r--r-- | src/lib/hash/sha1_sse2/sha1_sse2.h | 2 | ||||
-rw-r--r-- | src/lib/hash/sha2_32/sha2_32.h | 4 | ||||
-rw-r--r-- | src/lib/hash/sha2_64/sha2_64.h | 6 | ||||
-rw-r--r-- | src/lib/hash/skein/skein_512.h | 2 | ||||
-rw-r--r-- | src/lib/hash/tiger/tiger.h | 2 | ||||
-rw-r--r-- | src/lib/hash/whirlpool/whrlpool.h | 2 |
19 files changed, 28 insertions, 26 deletions
diff --git a/src/lib/hash/checksum/adler32/adler32.h b/src/lib/hash/checksum/adler32/adler32.h index c42c184c9..73df6134a 100644 --- a/src/lib/hash/checksum/adler32/adler32.h +++ b/src/lib/hash/checksum/adler32/adler32.h @@ -15,7 +15,7 @@ namespace Botan { /** * The Adler32 checksum, used in zlib */ -class BOTAN_DLL Adler32 : public HashFunction +class BOTAN_DLL Adler32 final : public HashFunction { public: std::string name() const override { return "Adler32"; } diff --git a/src/lib/hash/checksum/crc24/crc24.h b/src/lib/hash/checksum/crc24/crc24.h index 8e9ce9315..f80ee1c2a 100644 --- a/src/lib/hash/checksum/crc24/crc24.h +++ b/src/lib/hash/checksum/crc24/crc24.h @@ -15,7 +15,7 @@ namespace Botan { /** * 24-bit cyclic redundancy check */ -class BOTAN_DLL CRC24 : public HashFunction +class BOTAN_DLL CRC24 final : public HashFunction { public: std::string name() const override { return "CRC24"; } diff --git a/src/lib/hash/checksum/crc32/crc32.h b/src/lib/hash/checksum/crc32/crc32.h index 98c9a020c..987f34608 100644 --- a/src/lib/hash/checksum/crc32/crc32.h +++ b/src/lib/hash/checksum/crc32/crc32.h @@ -15,7 +15,7 @@ namespace Botan { /** * 32-bit cyclic redundancy check */ -class BOTAN_DLL CRC32 : public HashFunction +class BOTAN_DLL CRC32 final : public HashFunction { public: std::string name() const override { return "CRC32"; } diff --git a/src/lib/hash/comb4p/comb4p.h b/src/lib/hash/comb4p/comb4p.h index 1a99934a2..c05953ea5 100644 --- a/src/lib/hash/comb4p/comb4p.h +++ b/src/lib/hash/comb4p/comb4p.h @@ -16,7 +16,7 @@ namespace Botan { * Combines two hash functions using a Feistel scheme. Described in * "On the Security of Hash Function Combiners", Anja Lehmann */ -class BOTAN_DLL Comb4P : public HashFunction +class BOTAN_DLL Comb4P final : public HashFunction { public: /** diff --git a/src/lib/hash/gost_3411/gost_3411.h b/src/lib/hash/gost_3411/gost_3411.h index 326873d38..16f6a4954 100644 --- a/src/lib/hash/gost_3411/gost_3411.h +++ b/src/lib/hash/gost_3411/gost_3411.h @@ -16,7 +16,7 @@ namespace Botan { /** * GOST 34.11 */ -class BOTAN_DLL GOST_34_11 : public HashFunction +class BOTAN_DLL GOST_34_11 final : public HashFunction { public: std::string name() const override { return "GOST-R-34.11-94" ; } diff --git a/src/lib/hash/has160/has160.h b/src/lib/hash/has160/has160.h index ca9be03b0..7ef090eb7 100644 --- a/src/lib/hash/has160/has160.h +++ b/src/lib/hash/has160/has160.h @@ -16,7 +16,7 @@ namespace Botan { * HAS-160, a Korean hash function standardized in * TTAS.KO-12.0011/R1. Used in conjunction with KCDSA */ -class BOTAN_DLL HAS_160 : public MDx_HashFunction +class BOTAN_DLL HAS_160 final : public MDx_HashFunction { public: std::string name() const override { return "HAS-160"; } diff --git a/src/lib/hash/keccak/keccak.h b/src/lib/hash/keccak/keccak.h index c08b6c4e4..7929dd502 100644 --- a/src/lib/hash/keccak/keccak.h +++ b/src/lib/hash/keccak/keccak.h @@ -17,7 +17,7 @@ namespace Botan { /** * Keccak[1600], a SHA-3 candidate */ -class BOTAN_DLL Keccak_1600 : public HashFunction +class BOTAN_DLL Keccak_1600 final : public HashFunction { public: diff --git a/src/lib/hash/md2/md2.h b/src/lib/hash/md2/md2.h index 8209d49d2..ab29a49cb 100644 --- a/src/lib/hash/md2/md2.h +++ b/src/lib/hash/md2/md2.h @@ -15,7 +15,7 @@ namespace Botan { /** * MD2 */ -class BOTAN_DLL MD2 : public HashFunction +class BOTAN_DLL MD2 final : public HashFunction { public: std::string name() const override { return "MD2"; } diff --git a/src/lib/hash/md4/md4.h b/src/lib/hash/md4/md4.h index a0e481773..8b7ab5d70 100644 --- a/src/lib/hash/md4/md4.h +++ b/src/lib/hash/md4/md4.h @@ -15,7 +15,7 @@ namespace Botan { /** * MD4 */ -class BOTAN_DLL MD4 : public MDx_HashFunction +class BOTAN_DLL MD4 final : public MDx_HashFunction { public: std::string name() const override { return "MD4"; } @@ -29,14 +29,15 @@ class BOTAN_DLL MD4 : public MDx_HashFunction protected: void compress_n(const byte input[], size_t blocks) override; void copy_out(byte[]) override; + private: /** - * The message buffer, exposed for use by subclasses (x86 asm) + * The message buffer */ secure_vector<u32bit> m_M; /** - * The digest value, exposed for use by subclasses (x86 asm) + * The digest value */ secure_vector<u32bit> m_digest; }; diff --git a/src/lib/hash/md5/md5.h b/src/lib/hash/md5/md5.h index b0465c838..bbeffee50 100644 --- a/src/lib/hash/md5/md5.h +++ b/src/lib/hash/md5/md5.h @@ -15,7 +15,7 @@ namespace Botan { /** * MD5 */ -class BOTAN_DLL MD5 : public MDx_HashFunction +class BOTAN_DLL MD5 final : public MDx_HashFunction { public: std::string name() const override { return "MD5"; } @@ -30,13 +30,14 @@ class BOTAN_DLL MD5 : public MDx_HashFunction void compress_n(const byte[], size_t blocks) override; void copy_out(byte[]) override; + private: /** - * The message buffer, exposed for use by subclasses (x86 asm) + * The message buffer */ secure_vector<u32bit> m_M; /** - * The digest value, exposed for use by subclasses (x86 asm) + * The digest value */ secure_vector<u32bit> m_digest; }; diff --git a/src/lib/hash/par_hash/par_hash.h b/src/lib/hash/par_hash/par_hash.h index 432fed466..b0e2ff828 100644 --- a/src/lib/hash/par_hash/par_hash.h +++ b/src/lib/hash/par_hash/par_hash.h @@ -16,7 +16,7 @@ namespace Botan { /** * Parallel Hashes */ -class BOTAN_DLL Parallel : public HashFunction +class BOTAN_DLL Parallel final : public HashFunction { public: void clear() override; diff --git a/src/lib/hash/rmd128/rmd128.h b/src/lib/hash/rmd128/rmd128.h index e4ef551ea..ba36ab902 100644 --- a/src/lib/hash/rmd128/rmd128.h +++ b/src/lib/hash/rmd128/rmd128.h @@ -15,7 +15,7 @@ namespace Botan { /** * RIPEMD-128 */ -class BOTAN_DLL RIPEMD_128 : public MDx_HashFunction +class BOTAN_DLL RIPEMD_128 final : public MDx_HashFunction { public: std::string name() const override { return "RIPEMD-128"; } diff --git a/src/lib/hash/rmd160/rmd160.h b/src/lib/hash/rmd160/rmd160.h index 4ee6863de..0e4103101 100644 --- a/src/lib/hash/rmd160/rmd160.h +++ b/src/lib/hash/rmd160/rmd160.h @@ -15,7 +15,7 @@ namespace Botan { /** * RIPEMD-160 */ -class BOTAN_DLL RIPEMD_160 : public MDx_HashFunction +class BOTAN_DLL RIPEMD_160 final : public MDx_HashFunction { public: std::string name() const override { return "RIPEMD-160"; } diff --git a/src/lib/hash/sha1_sse2/sha1_sse2.h b/src/lib/hash/sha1_sse2/sha1_sse2.h index 20bb63727..a38600762 100644 --- a/src/lib/hash/sha1_sse2/sha1_sse2.h +++ b/src/lib/hash/sha1_sse2/sha1_sse2.h @@ -15,7 +15,7 @@ namespace Botan { /** * SHA-160 using SSE2 for the message expansion */ -class BOTAN_DLL SHA_160_SSE2 : public SHA_160 +class BOTAN_DLL SHA_160_SSE2 final : public SHA_160 { public: HashFunction* clone() const override { return new SHA_160_SSE2; } diff --git a/src/lib/hash/sha2_32/sha2_32.h b/src/lib/hash/sha2_32/sha2_32.h index 46d022ae8..528fe9cfd 100644 --- a/src/lib/hash/sha2_32/sha2_32.h +++ b/src/lib/hash/sha2_32/sha2_32.h @@ -16,7 +16,7 @@ namespace Botan { /** * SHA-224 */ -class BOTAN_DLL SHA_224 : public MDx_HashFunction +class BOTAN_DLL SHA_224 final : public MDx_HashFunction { public: std::string name() const override { return "SHA-224"; } @@ -37,7 +37,7 @@ class BOTAN_DLL SHA_224 : public MDx_HashFunction /** * SHA-256 */ -class BOTAN_DLL SHA_256 : public MDx_HashFunction +class BOTAN_DLL SHA_256 final : public MDx_HashFunction { public: std::string name() const override { return "SHA-256"; } diff --git a/src/lib/hash/sha2_64/sha2_64.h b/src/lib/hash/sha2_64/sha2_64.h index 736b33d12..a38f12dae 100644 --- a/src/lib/hash/sha2_64/sha2_64.h +++ b/src/lib/hash/sha2_64/sha2_64.h @@ -15,7 +15,7 @@ namespace Botan { /** * SHA-384 */ -class BOTAN_DLL SHA_384 : public MDx_HashFunction +class BOTAN_DLL SHA_384 final : public MDx_HashFunction { public: std::string name() const override { return "SHA-384"; } @@ -36,7 +36,7 @@ class BOTAN_DLL SHA_384 : public MDx_HashFunction /** * SHA-512 */ -class BOTAN_DLL SHA_512 : public MDx_HashFunction +class BOTAN_DLL SHA_512 final : public MDx_HashFunction { public: std::string name() const override { return "SHA-512"; } @@ -57,7 +57,7 @@ class BOTAN_DLL SHA_512 : public MDx_HashFunction /** * SHA-512/256 */ -class BOTAN_DLL SHA_512_256 : public MDx_HashFunction +class BOTAN_DLL SHA_512_256 final : public MDx_HashFunction { public: std::string name() const override { return "SHA-512-256"; } diff --git a/src/lib/hash/skein/skein_512.h b/src/lib/hash/skein/skein_512.h index 9d3c69fb2..b9d0deb2e 100644 --- a/src/lib/hash/skein/skein_512.h +++ b/src/lib/hash/skein/skein_512.h @@ -18,7 +18,7 @@ namespace Botan { /** * Skein-512, a SHA-3 candidate */ -class BOTAN_DLL Skein_512 : public HashFunction +class BOTAN_DLL Skein_512 final : public HashFunction { public: /** diff --git a/src/lib/hash/tiger/tiger.h b/src/lib/hash/tiger/tiger.h index 6634b544f..fb0524d44 100644 --- a/src/lib/hash/tiger/tiger.h +++ b/src/lib/hash/tiger/tiger.h @@ -15,7 +15,7 @@ namespace Botan { /** * Tiger */ -class BOTAN_DLL Tiger : public MDx_HashFunction +class BOTAN_DLL Tiger final : public MDx_HashFunction { public: std::string name() const override; diff --git a/src/lib/hash/whirlpool/whrlpool.h b/src/lib/hash/whirlpool/whrlpool.h index c59d16cda..d7db1de28 100644 --- a/src/lib/hash/whirlpool/whrlpool.h +++ b/src/lib/hash/whirlpool/whrlpool.h @@ -15,7 +15,7 @@ namespace Botan { /** * Whirlpool */ -class BOTAN_DLL Whirlpool : public MDx_HashFunction +class BOTAN_DLL Whirlpool final : public MDx_HashFunction { public: std::string name() const override { return "Whirlpool"; } |