Adjust to recent ObjFW changes.

This commit is contained in:
Jonathan Schleifer 2011-04-23 22:40:32 +02:00
parent d3d58b7697
commit f36f92f515
3 changed files with 195 additions and 199 deletions

View file

@ -265,7 +265,7 @@
* StoredKey := H(ClientKey)
*/
[hash updateWithBuffer: (void*) clientKey
ofSize: [hashType digestSize]];
length: [hashType digestSize]];
tmpArray = [OFDataArray dataArrayWithItemSize: 1];
[tmpArray addNItems: [hashType digestSize]
fromCArray: [hash digest]];
@ -378,7 +378,7 @@
if ([key itemSize] * [key count] > blockSize) {
hash = [[[hashType alloc] init] autorelease];
[hash updateWithBuffer: [key cArray]
ofSize: [key itemSize] * [key count]];
length: [key itemSize] * [key count]];
[k addNItems: [hashType digestSize]
fromCArray: [hash digest]];
} else
@ -407,7 +407,7 @@
hash = [[[hashType alloc] init] autorelease];
[hash updateWithBuffer: [k cArray]
ofSize: [k count]];
length: [k count]];
k = [OFDataArray dataArrayWithItemSize: 1];
[k addNItems: blockSize
fromCArray: kO];
@ -420,7 +420,7 @@
hash = [[[hashType alloc] init] autorelease];
[hash updateWithBuffer: [k cArray]
ofSize: [k count]];
length: [k count]];
[hash retain];
[pool release];