DecryptBlock Method
Decrypts a block and returns the decrypted data.
Syntax
ANSI (Cross Platform) char* DecryptBlock(const char* lpInputBuffer, int lenInputBuffer, int bLastBlock, int *lpSize = NULL); Unicode (Windows) LPSTR DecryptBlock(LPCSTR lpInputBuffer, INT lenInputBuffer, BOOL bLastBlock, LPINT lpSize = NULL);
- (NSData*)decryptBlock:(NSData*)inputBuffer :(BOOL)lastBlock;
#define MID_DES_DECRYPTBLOCK 4 IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_DES_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method will decrypt the specified block and return the decrypted data.
InputBuffer specifies the encrypted block to decrypt.
LastBlock indicates whether the block is the last block.
Error Handling (C++)
This method returns a Binary String value (with length lpSize); after it returns, call the GetLastErrorCode() method to obtain its 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.