ObjFW  Diff

Differences From Artifact [089b540858]:

To Artifact [3842b26a7e]:


154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
- (instancetype)init
{
	self = [super init];

	@try {
		_iVarsData = [[OFSecureData alloc]
		    initWithCount: sizeof(*_iVars)];
		_iVars = [_iVarsData items];

		[self of_resetState];
	} @catch (id e) {
		[self release];
		@throw e;
	}








|







154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
- (instancetype)init
{
	self = [super init];

	@try {
		_iVarsData = [[OFSecureData alloc]
		    initWithCount: sizeof(*_iVars)];
		_iVars = _iVarsData.mutableItems;

		[self of_resetState];
	} @catch (id e) {
		[self release];
		@throw e;
	}

182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
}

- (id)copy
{
	OFRIPEMD160Hash *copy = [[OFRIPEMD160Hash alloc] of_init];

	copy->_iVarsData = [_iVarsData copy];
	copy->_iVars = [copy->_iVarsData items];
	copy->_calculated = _calculated;

	return copy;
}

- (void)of_resetState
{







|







182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
}

- (id)copy
{
	OFRIPEMD160Hash *copy = [[OFRIPEMD160Hash alloc] of_init];

	copy->_iVarsData = [_iVarsData copy];
	copy->_iVars = copy->_iVarsData.mutableItems;
	copy->_calculated = _calculated;

	return copy;
}

- (void)of_resetState
{