ObjFW  Diff

Differences From Artifact [bb076bbf91]:

To Artifact [b45fb37713]:


104
105
106
107
108
109
110







111
112
113
114
115
116
117
118
119
120
121
122
123
124
	return [[[self alloc] init] autorelease];
}

- init
{
	self = [super init];








	_state[0] = 0x67452301;
	_state[1] = 0xEFCDAB89;
	_state[2] = 0x98BADCFE;
	_state[3] = 0x10325476;
	_state[4] = 0xC3D2E1F0;

	return self;
}

- (void)updateWithBuffer: (const void*)buffer_
		  length: (size_t)length
{
	const uint8_t *buffer = buffer_;








>
>
>
>
>
>
>





<
<







104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122


123
124
125
126
127
128
129
	return [[[self alloc] init] autorelease];
}

- init
{
	self = [super init];

	[self OF_resetState];

	return self;
}

- (void)OF_resetState
{
	_state[0] = 0x67452301;
	_state[1] = 0xEFCDAB89;
	_state[2] = 0x98BADCFE;
	_state[3] = 0x10325476;
	_state[4] = 0xC3D2E1F0;


}

- (void)updateWithBuffer: (const void*)buffer_
		  length: (size_t)length
{
	const uint8_t *buffer = buffer_;

171
172
173
174
175
176
177









178
	return (const uint8_t*)_state;
}

- (bool)isCalculated
{
	return _calculated;
}









@end







>
>
>
>
>
>
>
>
>

176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
	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;
}
@end