OFSHA1Hash Class Reference

A class which provides functions to create an SHA1 hash. More...

#import <OFHashes.h>

Inheritance diagram for OFSHA1Hash:
OFObject

List of all members.

Public Member Functions

(id) - updateWithBuffer:ofSize:
(uint8_t *) - digest

Static Public Member Functions

(id) + sha1Hash

Protected Attributes

uint32_t state [5]
uint64_t count
char buffer [64]
uint8_t digest [OF_SHA1_DIGEST_SIZE]
BOOL calculated

Detailed Description

A class which provides functions to create an SHA1 hash.


Member Function Documentation

- (uint8_t*) digest  
Returns:
A buffer containing the hash (OF_SHA1_DIGEST_SIZE = 20 bytes). The buffer is part of object's memory pool.
+ (id) sha1Hash  
Returns:
A new autoreleased SHA1 Hash
- (id) updateWithBuffer: (const char*)  buf
ofSize: (size_t)  size 

Adds a buffer to the hash to be calculated.

Parameters:
buf The buffer which should be included into calculation.
size The size of the buffer

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

Generated on Sun Mar 14 13:41:06 2010 for ObjFW by  doxygen 1.6.1