Public Member Functions | Protected Attributes

MMHContext Class Reference

MMH will return different values on big-endian and little-endian machines. More...

#include <MMH.h>

Inherits ats::CryptoContext.

Collaboration diagram for MMHContext:
Collaboration graph
[legend]

Public Member Functions

 MMHContext ()
virtual bool update (void const *data, int length)
 Update the hash with data of length bytes.
virtual bool finalize (CryptoHash &hash)
 Finalize and extract the hash.

Protected Attributes

MMH_CTX _ctx

Detailed Description

MMH will return different values on big-endian and little-endian machines.

It can be adapted to return the same values at some additional cost.

Definition at line 53 of file MMH.h.


Constructor & Destructor Documentation

MMHContext::MMHContext (  ) 

Definition at line 462 of file MMH.cc.

References _ctx, and ink_code_incr_MMH_init().


Member Function Documentation

bool MMHContext::finalize ( CryptoHash hash  )  [virtual]

Finalize and extract the hash.

Implements ats::CryptoContext.

Definition at line 472 of file MMH.cc.

References _ctx, ink_code_incr_MMH_final(), and ats::CryptoHash::u8.

bool MMHContext::update ( void const *  data,
int  length 
) [virtual]

Update the hash with data of length bytes.

Implements ats::CryptoContext.

Definition at line 467 of file MMH.cc.

References _ctx, and ink_code_incr_MMH_update().


Field Documentation

Definition at line 56 of file MMH.h.

Referenced by finalize(), MMHContext(), and update().


The documentation for this class was generated from the following files: