ObjFW  Diff

Differences From Artifact [139ebf49f1]:

To Artifact [aff18d378f]:


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
12
13
14
15
16
17
18

19
20
21
22
23
24
25







-







 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#include <stdlib.h>
#include <string.h>

#import "OFSHA384Or512Hash.h"

#import "OFHashAlreadyCalculatedException.h"

static const uint64_t table[] = {
135
136
137
138
139
140
141
142
143
144
145
146

147
148
149


150
151

152
153

154
155
156
157
158
159
160
134
135
136
137
138
139
140





141



142
143


144


145
146
147
148
149
150
151
152







-
-
-
-
-
+
-
-
-
+
+
-
-
+
-
-
+







+ (instancetype)hash
{
	return [[[self alloc] init] autorelease];
}

- init
{
	if (object_getClass(self) == [OFSHA384Or512Hash class]) {
		@try {
			[self doesNotRecognizeSelector: _cmd];
		} @catch (id e) {
			[self release];
	self = [super init];
			@throw e;
		}


	[self OF_resetState];
		abort();
	}


	return [super init];
	return self;
}

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