Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kCipher_Decrypt ( kCipher  cipher,
const void *  data,
kSize  dataLength,
kArray1  result 
)

Decrypts data.

When decrypting data, it is necessary to use the same cipher mode that was used to encrypt the data.

It is the caller's responsibility to remove any padding that was added during encryption.

Parameters
cipherCipher object.
dataData to decrypt.
dataLengthLength of the data to decrypt, in bytes (multiple of the block size).
resultReceives decrypted output.
Returns
Operation status.