106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
state[4] += new[4];
state[5] += new[5];
state[6] += new[6];
state[7] += new[7];
}
@implementation OFSHA224Or256Hash
+ (size_t)digestSize
{
OF_UNRECOGNIZED_SELECTOR
}
+ (size_t)blockSize
{
|
>
>
|
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
state[4] += new[4];
state[5] += new[5];
state[6] += new[6];
state[7] += new[7];
}
@implementation OFSHA224Or256Hash
@synthesize calculated = _calculated;
+ (size_t)digestSize
{
OF_UNRECOGNIZED_SELECTOR
}
+ (size_t)blockSize
{
|
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
memset(&_buffer, 0, sizeof(_buffer));
byteSwapVectorIfLE(_state, 8);
_calculated = true;
return (const uint8_t*)_state;
}
- (bool)isCalculated
{
return _calculated;
}
- (void)reset
{
[self OF_resetState];
_bits = 0;
memset(&_buffer, 0, sizeof(_buffer));
_bufferLength = 0;
_calculated = false;
|
<
<
<
<
<
|
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
memset(&_buffer, 0, sizeof(_buffer));
byteSwapVectorIfLE(_state, 8);
_calculated = true;
return (const uint8_t*)_state;
}
- (void)reset
{
[self OF_resetState];
_bits = 0;
memset(&_buffer, 0, sizeof(_buffer));
_bufferLength = 0;
_calculated = false;
|