Fork of François Berder Crypto, fixed AES CBC and small rework

Dependents:   AES_example shaun_larada Smartage

Fork of Crypto by Francois Berder

hash/HMAC.h

Committer:
Geremia
Date:
2015-01-28
Revision:
16:4399e2e6260b
Parent:
10:bc9c23aa3870

File content as of revision 16:4399e2e6260b:

#ifndef HMAC_H
#define HMAC_H

#include "HashAlgorithm.h"

class HMAC
{
    public :
        
        HMAC(HashAlgorithm *hashAlgo, uint8_t *k, uint32_t kl);
        virtual ~HMAC();
        
        void update(uint8_t *data, uint32_t length);
        void finalize(uint8_t *hash);
        
    private :
    
        HashAlgorithm *algo;
        uint8_t key[64];
        uint32_t keyLength;
};

#endif