summaryrefslogtreecommitdiff
path: root/sha.h
diff options
context:
space:
mode:
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