summaryrefslogtreecommitdiff
path: root/sha.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-06 09:23:37 -0400
committerGitHub <noreply@github.com>2018-07-06 09:23:37 -0400
commitb74a6f444568e59a7766d1e286f82d2ce3086dcd (patch)
tree97937fe23f742f6c352f39e206b7ce7d774ba358 /sha.h
parent6d9047b444731175e6ea9a447a3f0002685804be (diff)
downloadcryptopp-git-b74a6f444568e59a7766d1e286f82d2ce3086dcd.tar.gz
Add algorithm provider member function to Algorithm class
Diffstat (limited to 'sha.h')
-rw-r--r--sha.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sha.h b/sha.h
index 2d2463d5..f7bfd4d6 100644
--- a/sha.h
+++ b/sha.h
@@ -50,6 +50,8 @@ public:
/// \brief The algorithm name
/// \returns C-style string "SHA-1"
CRYPTOPP_STATIC_CONSTEXPR const char* CRYPTOPP_API StaticAlgorithmName() {return "SHA-1";}
+ // Algorithm class
+ std::string AlgorithmProvider() const;
protected:
size_t HashMultipleBlocks(const HashWordType *input, size_t length);
@@ -87,6 +89,9 @@ public:
/// \returns C-style string "SHA-256"
CRYPTOPP_STATIC_CONSTEXPR const char* CRYPTOPP_API StaticAlgorithmName() {return "SHA-256";}
+ // Algorithm class
+ std::string AlgorithmProvider() const;
+
protected:
size_t HashMultipleBlocks(const HashWordType *input, size_t length);
};
@@ -123,6 +128,9 @@ public:
/// \returns C-style string "SHA-224"
CRYPTOPP_STATIC_CONSTEXPR const char* CRYPTOPP_API StaticAlgorithmName() {return "SHA-224";}
+ // Algorithm class
+ std::string AlgorithmProvider() const;
+
protected:
size_t HashMultipleBlocks(const HashWordType *input, size_t length);
};
@@ -157,6 +165,9 @@ public:
/// \brief The algorithm name
/// \returns C-style string "SHA-512"
CRYPTOPP_STATIC_CONSTEXPR const char* CRYPTOPP_API StaticAlgorithmName() {return "SHA-512";}
+
+ // Algorithm class
+ std::string AlgorithmProvider() const;
};
/// \brief SHA-384 message digest
@@ -189,6 +200,9 @@ public:
/// \brief The algorithm name
/// \returns C-style string "SHA-384"
CRYPTOPP_STATIC_CONSTEXPR const char* CRYPTOPP_API StaticAlgorithmName() {return "SHA-384";}
+
+ // Algorithm class
+ std::string AlgorithmProvider() const;
};
NAMESPACE_END