OFSHA1Hash Class Reference
A class which provides functions to create an SHA1 hash.
More...
#import <OFHashes.h>
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
- Returns:
- A buffer containing the hash (OF_SHA1_DIGEST_SIZE = 20 bytes). The buffer is part of object's memory pool.
- 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: