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.
Dependents: AES_example shaun_larada Smartage
Fork of Crypto by
SHA512.cpp
00001 #include "SHA512.h" 00002 00003 00004 SHA512::SHA512(): 00005 HashAlgorithm(), 00006 algo(SHA_512) 00007 { 00008 } 00009 00010 uint8_t SHA512::outputSize() const 00011 { 00012 return 64; 00013 } 00014 00015 void SHA512::update(uint8_t *data, uint32_t length) 00016 { 00017 algo.update(data, length); 00018 } 00019 00020 void SHA512::finalize(uint8_t *hash) 00021 { 00022 algo.finalize(hash); 00023 } 00024 00025 void SHA512::computeHash(uint8_t *hash, uint8_t *data, uint32_t length) 00026 { 00027 SHA2_64::computeHash(SHA_512, hash, data, length); 00028 }
Generated on Mon Jul 18 2022 02:59:39 by
 1.7.2
 1.7.2 
    