1.1 --- a/MYDigest.m Sun Apr 19 21:19:35 2009 -0700
1.2 +++ b/MYDigest.m Tue Jul 21 10:13:08 2009 -0700
1.3 @@ -79,11 +79,11 @@
1.4 }
1.5
1.6
1.7 -+ (MYDigest*) digestFromDigestData: (NSData*)digestData {
1.8 ++ (id) digestFromDigestData: (NSData*)digestData {
1.9 return [[[self alloc] initWithRawDigest: digestData.bytes length: digestData.length] autorelease];
1.10 }
1.11
1.12 -+ (MYDigest*) digestFromHexString: (NSString*)hexString
1.13 ++ (id) digestFromHexString: (NSString*)hexString
1.14 {
1.15 const char *cStr = [hexString UTF8String];
1.16 const size_t length = [self length];
1.17 @@ -98,10 +98,11 @@
1.18 return [[[self alloc] initWithRawDigest: &digest length: length] autorelease];
1.19 }
1.20
1.21 -+ (MYDigest*) digestOfData: (NSData*)data {
1.22 ++ (id) digestOfData: (NSData*)data {
1.23 return [self digestOfBytes: data.bytes length: data.length];
1.24 }
1.25 -+ (MYDigest*) digestOfBytes: (const void*)bytes length: (size_t)length {
1.26 +
1.27 ++ (id) digestOfBytes: (const void*)bytes length: (size_t)length {
1.28 const size_t digestLength = [self length];
1.29 uint8_t digest[digestLength];
1.30 [self computeDigest: digest ofBytes: bytes length: length];