125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
self = [super init];
buf[0] = 0x67452301;
buf[1] = 0xEFCDAB89;
buf[2] = 0x98BADCFE;
buf[3] = 0x10325476;
bits[0] = 0;
bits[1] = 0;
calculated = NO;
return self;
}
- updateWithBuffer: (const char*)buffer
ofSize: (size_t)size
{
uint32_t t;
|
<
<
<
<
<
|
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
self = [super init];
buf[0] = 0x67452301;
buf[1] = 0xEFCDAB89;
buf[2] = 0x98BADCFE;
buf[3] = 0x10325476;
return self;
}
- updateWithBuffer: (const char*)buffer
ofSize: (size_t)size
{
uint32_t t;
|
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
|
return [[[OFSHA1Hash alloc] init] autorelease];
}
- init
{
self = [super init];
count = 0;
state[0] = 0x67452301;
state[1] = 0xEFCDAB89;
state[2] = 0x98BADCFE;
state[3] = 0x10325476;
state[4] = 0xC3D2E1F0;
return self;
|
<
|
358
359
360
361
362
363
364
365
366
367
368
369
370
371
|
return [[[OFSHA1Hash alloc] init] autorelease];
}
- init
{
self = [super init];
state[0] = 0x67452301;
state[1] = 0xEFCDAB89;
state[2] = 0x98BADCFE;
state[3] = 0x10325476;
state[4] = 0xC3D2E1F0;
return self;
|