Fork of François Berder Crypto, fixed AES CBC and small rework

Dependents:   AES_example shaun_larada Smartage

Fork of Crypto by Francois Berder

Revision:
6:19aa835f2bbb
Parent:
5:06cd9c8afa0b
--- a/SHA224.cpp	Thu Sep 12 15:08:51 2013 +0000
+++ b/SHA224.cpp	Thu Sep 12 16:03:43 2013 +0000
@@ -7,22 +7,22 @@
 {
 }
 
-void SHA224::update(uint8_t *in, uint32_t length)
-{
-    algo.update(in, length);
-}
-
-void SHA224::finalize(uint8_t *out)
-{
-    algo.finalize(out);
-}
-
 uint8_t SHA224::outputSize() const
 {
     return 28;
 }
 
-void SHA224::computeDigest(uint8_t *digest, uint8_t *in, uint32_t length)
+void SHA224::update(uint8_t *data, uint32_t length)
+{
+    algo.update(data, length);
+}
+
+void SHA224::finalize(uint8_t *hash)
 {
-    SHA2_32::computeDigest(SHA_224, digest, in, length);
+    algo.finalize(hash);
 }
+
+void SHA224::computeHash(uint8_t *hash, uint8_t *data, uint32_t length)
+{
+    SHA2_32::computeHash(SHA_224, hash, data, length);
+}