Update Method
Feeds a chunk of data to the hash function.
Syntax
ANSI (Cross Platform) int Update(const char* lpBuffer, int lenBuffer); Unicode (Windows) INT Update(LPCSTR lpBuffer, INT lenBuffer);
- (void)update:(NSData*)buffer;
#define MID_HASHFUNCTION_UPDATE 8 SECUREBLACKBOX_EXTERNAL int SECUREBLACKBOX_CALL SecureBlackbox_HashFunction_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method feeds Buffer to the hash function. Call this methodrepeatedly to pass your data to the hash function chunk by chunk.
Remember to initialize the hash function with an Reset call beforestarting to feed data with this method. After the whole volume ofdata has been sent, complete the calculation and obtain the resultingmessage digest with a Finish call.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)