147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
- (instancetype)init
{
self = [super init];
@try {
_iVarsData = [[OFSecureData alloc]
initWithCount: sizeof(*_iVars)];
_iVars = [_iVarsData items];
if ([self class] == [OFSHA384Or512Hash class]) {
[self doesNotRecognizeSelector: _cmd];
abort();
}
[self of_resetState];
} @catch (id e) {
[self release];
|
|
|
|
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
- (instancetype)init
{
self = [super init];
@try {
_iVarsData = [[OFSecureData alloc]
initWithCount: sizeof(*_iVars)];
_iVars = _iVarsData.mutableItems;
if (self.class == [OFSHA384Or512Hash class]) {
[self doesNotRecognizeSelector: _cmd];
abort();
}
[self of_resetState];
} @catch (id e) {
[self release];
|
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
|
}
- (id)copy
{
OFSHA384Or512Hash *copy = [[[self class] alloc] of_init];
copy->_iVarsData = [_iVarsData copy];
copy->_iVars = [copy->_iVarsData items];
copy->_calculated = _calculated;
return copy;
}
- (void)updateWithBuffer: (const void *)buffer_
length: (size_t)length
|
|
|
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
|
}
- (id)copy
{
OFSHA384Or512Hash *copy = [[[self class] alloc] of_init];
copy->_iVarsData = [_iVarsData copy];
copy->_iVars = copy->_iVarsData.mutableItems;
copy->_calculated = _calculated;
return copy;
}
- (void)updateWithBuffer: (const void *)buffer_
length: (size_t)length
|