ObjFW
Public Member Functions | Static Public Member Functions | Properties
OFHash Class Reference

A base class for classes providing hash functions. More...

#include <OFHash.h>

Inheritance diagram for OFHash:
OFObject <OFObject> OFMD5Hash OFSHA1Hash

List of all members.

Public Member Functions

void updateWithBuffer:ofSize: (const char *buf,[ofSize] size_t size)
uint8_t * digest ()
BOOL isCalculated ()

Static Public Member Functions

size_t digestSize ()
size_t blockSize ()

Properties

BOOL isCalculated

Detailed Description

A base class for classes providing hash functions.


Member Function Documentation

size_t OFHash::blockSize ( ) [static, virtual]
Returns:
The block size of the hash, in byte.
uint8_t * OFHash::digest ( ) [virtual]
Returns:
A buffer containing the hash. The size of the buffer is depending on the hash used. The buffer is part of object's memory pool.
size_t OFHash::digestSize ( ) [static, virtual]
Returns:
The digest size of the hash, in byte.
BOOL OFHash::isCalculated ( ) [virtual]
Returns:
A boolean whether the hash has already been calculated
void OFHash::updateWithBuffer:ofSize: ( const char*  buf,
[ofSize] size_t  size 
) [virtual]

Adds a buffer to the hash to be calculated.

Parameters:
bufThe buffer which should be included into the calculation.
sizeThe size of the buffer

The documentation for this class was generated from the following files:
 All Classes Functions Variables