Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Crypto_light by
Diff: SHA384.cpp
- Revision:
- 6:19aa835f2bbb
- Parent:
- 5:06cd9c8afa0b
diff -r 06cd9c8afa0b -r 19aa835f2bbb SHA384.cpp --- 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); +}