diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-07-23 09:57:11 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-07-23 09:57:11 +0000 |
commit | fa4774e7d94e01b1f97c2126821544aec8e001a4 (patch) | |
tree | 28bc00f13c4aa241379c6a2d2276a9a3200c8dff /sha.h | |
parent | 4d4ca69d28e47cbb81e39135471e1b4f3e477e4d (diff) | |
download | cryptopp-fa4774e7d94e01b1f97c2126821544aec8e001a4.tar.gz |
add SHA-224
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@191 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'sha.h')
-rw-r--r-- | sha.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -28,6 +28,15 @@ protected: static const word32 K[64]; }; +//! implements the SHA-224 standard +class SHA224 : public IteratedHashWithStaticTransform<word32, BigEndian, 64, 32, SHA224, 28> +{ +public: + static void InitState(HashWordType *state); + static void Transform(word32 *digest, const word32 *data) {SHA256::Transform(digest, data);} + static const char *StaticAlgorithmName() {return "SHA-224";} +}; + #ifdef WORD64_AVAILABLE //! implements the SHA-512 standard |