156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
length: (size_t)length
{
if (length == 0)
return;
if (calculated)
@throw [OFHashAlreadyCalculatedException
exceptionWithClass: isa
hash: self];
sha1_update(state, &count, buffer, buffer_, length);
}
- (uint8_t*)digest
{
|
|
|
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
length: (size_t)length
{
if (length == 0)
return;
if (calculated)
@throw [OFHashAlreadyCalculatedException
exceptionWithClass: [self class]
hash: self];
sha1_update(state, &count, buffer, buffer_, length);
}
- (uint8_t*)digest
{
|