@@ -19,10 +19,15 @@ #import "OFHash.h" #import "OFNotImplementedException.h" @implementation OFHash ++ hash +{ + return [[[self alloc] init] autorelease]; +} + + (size_t)digestSize { @throw [OFNotImplementedException exceptionWithClass: self selector: _cmd]; } @@ -31,11 +36,11 @@ { @throw [OFNotImplementedException exceptionWithClass: self selector: _cmd]; } -- (void)updateWithBuffer: (const char*)buffer +- (void)updateWithBuffer: (const void*)buffer length: (size_t)length { @throw [OFNotImplementedException exceptionWithClass: isa selector: _cmd]; }