113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
buf[2] += c;
buf[3] += d;
}
@implementation OFMD5Hash
+ md5Hash
{
return [[[OFMD5Hash alloc] init] autorelease];
}
- init
{
self = [super init];
buf[0] = 0x67452301;
|
|
|
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
buf[2] += c;
buf[3] += d;
}
@implementation OFMD5Hash
+ md5Hash
{
return [[[self alloc] init] autorelease];
}
- init
{
self = [super init];
buf[0] = 0x67452301;
|
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
|
memcpy(&buffer[j], &buf[i], size - i);
}
@implementation OFSHA1Hash
+ sha1Hash
{
return [[[OFSHA1Hash alloc] init] autorelease];
}
- init
{
self = [super init];
state[0] = 0x67452301;
|
|
|
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
|
memcpy(&buffer[j], &buf[i], size - i);
}
@implementation OFSHA1Hash
+ sha1Hash
{
return [[[self alloc] init] autorelease];
}
- init
{
self = [super init];
state[0] = 0x67452301;
|