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 SHA256.h Source File

SHA256.h

00001 #ifndef SHA2_256_H
00002 #define SHA2_256_H
00003 
00004 #include "HashAlgorithm.h"
00005 #include "SHA2_32.h"
00006 
00007 
00008 class SHA256 : public HashAlgorithm
00009 {
00010     public :
00011 
00012         SHA256();
00013         
00014         virtual uint8_t outputSize() const;
00015         virtual void update(uint8_t *data, uint32_t length);
00016         virtual void finalize(uint8_t *hash);
00017 
00018         static void computeHash(uint8_t *hash, uint8_t *data, uint32_t length);
00019 
00020     private :
00021     
00022         SHA2_32 algo;
00023 };
00024 
00025 #endif