aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-02 23:33:53 -0400
committerJack Lloyd <[email protected]>2017-10-02 23:34:21 -0400
commitf9090ec68986d297fd4cfd97bf75521df8f38aff (patch)
treeb7a7f687e8a4b5842f68c644ab0b3e8766f19a45 /src/lib/hash
parent9701249c99e4775d7015ce5d6a884626cc8f2673 (diff)
Remove protected functions from final classes
Mostly residue from the old system of splitting impls among subclasses Found with Sonar
Diffstat (limited to 'src/lib/hash')
-rw-r--r--src/lib/hash/md4/md4.h4
-rw-r--r--src/lib/hash/md5/md5.h4
-rw-r--r--src/lib/hash/sm3/sm3.h3
3 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/hash/md4/md4.h b/src/lib/hash/md4/md4.h
index 15f796df8..c51cb1682 100644
--- a/src/lib/hash/md4/md4.h
+++ b/src/lib/hash/md4/md4.h
@@ -27,10 +27,10 @@ class BOTAN_PUBLIC_API(2,0) MD4 final : public MDx_HashFunction
MD4() : MDx_HashFunction(64, false, true), m_M(16), m_digest(4)
{ clear(); }
- protected:
+
+ private:
void compress_n(const uint8_t input[], size_t blocks) override;
void copy_out(uint8_t[]) override;
- private:
/**
* The message buffer
diff --git a/src/lib/hash/md5/md5.h b/src/lib/hash/md5/md5.h
index 54231e785..07d10fb7a 100644
--- a/src/lib/hash/md5/md5.h
+++ b/src/lib/hash/md5/md5.h
@@ -27,11 +27,11 @@ class BOTAN_PUBLIC_API(2,0) MD5 final : public MDx_HashFunction
MD5() : MDx_HashFunction(64, false, true), m_M(16), m_digest(4)
{ clear(); }
- protected:
+
+ private:
void compress_n(const uint8_t[], size_t blocks) override;
void copy_out(uint8_t[]) override;
- private:
/**
* The message buffer
*/
diff --git a/src/lib/hash/sm3/sm3.h b/src/lib/hash/sm3/sm3.h
index 5aa0f289c..56471e7d1 100644
--- a/src/lib/hash/sm3/sm3.h
+++ b/src/lib/hash/sm3/sm3.h
@@ -32,11 +32,10 @@ class BOTAN_PUBLIC_API(2,2) SM3 final : public MDx_HashFunction
SM3() : MDx_HashFunction(SM3_BLOCK_BYTES, true, true), m_digest(SM3_DIGEST_BYTES)
{ clear(); }
- protected:
+ private:
void compress_n(const uint8_t[], size_t blocks) override;
void copy_out(uint8_t[]) override;
- private:
/**
* The digest value
*/