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/SHA384.cpp	Thu Sep 12 15:08:51 2013 +0000
+++ b/SHA384.cpp	Thu Sep 12 16:03:43 2013 +0000
@@ -7,22 +7,22 @@
 {
 }
 
-void SHA384::update(uint8_t *in, uint32_t length)
-{
-    algo.update(in, length);
-}
-
-void SHA384::finalize(uint8_t *out)
-{
-    algo.finalize(out);
-}
-
 uint8_t SHA384::outputSize() const
 {
     return 48;
 }
 
-void SHA384::computeDigest(uint8_t *digest, uint8_t *in, uint32_t length)
+void SHA384::update(uint8_t *data, uint32_t length)
+{
+    algo.update(data, length);
+}
+
+void SHA384::finalize(uint8_t *hash)
 {
-    SHA2_64::computeDigest(SHA_384, digest, in, length);
+    algo.finalize(hash);
 }
+
+void SHA384::computeHash(uint8_t *hash, uint8_t *data, uint32_t length)
+{
+    SHA2_64::computeHash(SHA_384, hash, data, length);
+}