ObjFW
|
A base class for classes providing hash functions. More...
#import <OFHash.h>
Public Member Functions | |
(void) | - updateWithBuffer:length: |
Adds a buffer to the hash to be calculated. | |
(uint8_t *) | - digest |
Returns a buffer containing the hash. | |
(BOOL) | - isCalculated |
Returns a boolean whether the hash has already been calculated. | |
Static Public Member Functions | |
(size_t) | + digestSize |
Returns the digest size of the hash, in bytes. | |
(size_t) | + blockSize |
Returns the block size of the hash, in bytes. |
A base class for classes providing hash functions.
+ (size_t) blockSize |
Returns the block size of the hash, in bytes.
- (uint8_t *) digest |
Returns a buffer containing the hash.
The size of the buffer depends on the hash used. The buffer is part of the receiver's memory pool.
+ (size_t) digestSize |
Returns the digest size of the hash, in bytes.
- (BOOL) isCalculated |
Returns a boolean whether the hash has already been calculated.
- (void) updateWithBuffer: | (const char*) | buf | |
length: | (size_t) | length | |
Adds a buffer to the hash to be calculated.
buf | The buffer which should be included into the calculation. |
length | The length of the buffer |