26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
BOOL calculated;
}
- init;
/**
* Adds a buffer to the hash to be calculated.
*
* \param buf The buffer which should be included into calculation.
* \param size The size of the buffer
*/
- updateWithBuffer: (const uint8_t*)buf
ofSize: (size_t)size;
/**
|
|
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
BOOL calculated;
}
- init;
/**
* Adds a buffer to the hash to be calculated.
*
* \param buf The buffer which should be included into calculation.
* \param size The size of the buffer
*/
- updateWithBuffer: (const uint8_t*)buf
ofSize: (size_t)size;
/**
|
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
BOOL calculated;
}
- init;
/**
* Adds a buffer to the hash to be calculated.
*
* \param buf The buffer which should be included into calculation.
* \param size The size of the buffer
*/
- updateWithBuffer: (const uint8_t*)buf
ofSize: (size_t)size;
/**
* \return A buffer containing the hash (SHA1_DIGEST_SIZE = 20 bytes).
* The buffer is part of object's memory pool.
*/
- (uint8_t*)digest;
@end
|
|
|
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
BOOL calculated;
}
- init;
/**
* Adds a buffer to the hash to be calculated.
*
* \param buf The buffer which should be included into calculation.
* \param size The size of the buffer
*/
- updateWithBuffer: (const uint8_t*)buf
ofSize: (size_t)size;
/**
* \return A buffer containing the hash (SHA1_DIGEST_SIZE = 20 bytes).
* The buffer is part of object's memory pool.
*/
- (uint8_t*)digest;
@end
|