summaryrefslogtreecommitdiff
path: root/sha.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-07-23 09:57:11 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-07-23 09:57:11 +0000
commitfa4774e7d94e01b1f97c2126821544aec8e001a4 (patch)
tree28bc00f13c4aa241379c6a2d2276a9a3200c8dff /sha.h
parent4d4ca69d28e47cbb81e39135471e1b4f3e477e4d (diff)
downloadcryptopp-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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sha.h b/sha.h
index efe5350..e0ac2ea 100644
--- a/sha.h
+++ b/sha.h
@@ -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