CryptDecode Function
**Overview**
Performs the inverse transformation of data previously transformed by the CryptEncode() function.
**Signature**
int CryptDecode(
ENUM_CRYPT_METHOD method, // Transformation method
const uchar& data[], // Source array
const uchar& key[], // Key array
uchar& result[] // Destination array
);
**Parameters**
method: [in] Specifies the data transformation method. Must be one of the values from the ENUM_CRYPT_METHOD enumeration.data[]: [in] The source array containing the data to be decoded.key[]: [in] The key array used for the decoding process.result[]: [out] The destination array where the decoded data will be stored.**Return Value**
Returns the number of bytes written to the result array upon successful decoding. Returns 0 if an error occurs. To get specific error information, call the GetLastError() function.
**See Also**
CryptEncode()GetLastError()ENUM_CRYPT_METHOD (for available methods)**Related Functions**
CryptEncode (for the forward transformation)**Platform Support**
**Error Handling**
Call GetLastError() after a return value of 0 to determine the cause of the error.
Previous
arrow_back
Cryptencode