#include <crypto_asdcp.h>
Inheritance diagram for HashHMACSHA1:

Public Member Functions | |
| HashHMACSHA1 () | |
| Initialize this object. | |
| bool | SetKey (size_t Size, const UInt8 *Key) |
| Set the key and start hashing. | |
| void | HashData (size_t Size, const UInt8 *Data) |
| Add the given data to the current hash being calculated. | |
| DataChunkPtr | GetHash (void) |
| Get the finished hash value. | |
Protected Attributes | |
| UInt8 | KeyBuffer_i [64] |
| Inner key buffer, holds key xor 0x36. | |
| UInt8 | KeyBuffer_o [64] |
| Outer key buffer, holds key xor 0x5c. | |
| SHA_CTX | Context |
| Our SHA-1 context. | |
| bool | KeyInited |
| True once the key has been initialized. | |
Calculates an HMAC-SHA1 hash for given data
| HashHMACSHA1 | ( | ) | [inline] |
Initialize this object.
| bool SetKey | ( | size_t | Size, | |
| const UInt8 * | Key | |||
| ) | [virtual] |
| void HashData | ( | size_t | Size, | |
| const UInt8 * | Data | |||
| ) | [virtual] |
| DataChunkPtr GetHash | ( | void | ) | [virtual] |
UInt8 KeyBuffer_i[64] [protected] |
Inner key buffer, holds key xor 0x36.
UInt8 KeyBuffer_o[64] [protected] |
Outer key buffer, holds key xor 0x5c.
SHA_CTX Context [protected] |
Our SHA-1 context.
bool KeyInited [protected] |
True once the key has been initialized.
1.5.1-p1