ObjFW  Diff

Differences From Artifact [d2d42ba8eb]:

  • File src/OFRIPEMD160Hash.m — part of check-in [b1cd76a8cd] at 2016-07-24 18:54:10 on branch trunk — OFCryptoHash: Conform to OFCopying (user: js size: 5869)

To Artifact [4ed4626462]:

  • File src/OFRIPEMD160Hash.m — part of check-in [096dd743b5] at 2016-07-24 20:05:18 on branch trunk — OF*Hash: Call [self reset] in -[dealloc] (user: js size: 5924)

148
149
150
151
152
153
154







155
156
157
158
159
160
161
{
	self = [super init];

	[self OF_resetState];

	return self;
}








- copy
{
	OFRIPEMD160Hash *copy = [[OFRIPEMD160Hash alloc] init];

	memcpy(copy->_state, _state, sizeof(_state));
	copy->_bits = _bits;







>
>
>
>
>
>
>







148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
	self = [super init];

	[self OF_resetState];

	return self;
}

- (void)dealloc
{
	[self reset];

	[super dealloc];
}

- copy
{
	OFRIPEMD160Hash *copy = [[OFRIPEMD160Hash alloc] init];

	memcpy(copy->_state, _state, sizeof(_state));
	copy->_bits = _bits;