This library implements some hash and cryptographic algorithms.

Dependents:   mBuinoBlinky PB_Emma_Ethernet SLOTrashHTTP Garagem ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SHA224.cpp Source File

SHA224.cpp

00001 #include "SHA224.h"
00002 
00003 
00004 SHA224::SHA224():
00005 HashAlgorithm(),
00006 algo(SHA_224)
00007 {
00008 }
00009 
00010 uint8_t SHA224::outputSize() const
00011 {
00012     return 28;
00013 }
00014 
00015 void SHA224::update(uint8_t *data, uint32_t length)
00016 {
00017     algo.update(data, length);
00018 }
00019 
00020 void SHA224::finalize(uint8_t *hash)
00021 {
00022     algo.finalize(hash);
00023 }
00024 
00025 void SHA224::computeHash(uint8_t *hash, uint8_t *data, uint32_t length)
00026 {
00027     SHA2_32::computeHash(SHA_224, hash, data, length);
00028 }