Zen API

- Home
- Topics
- Types
- Files

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

  cipher | Cipher object.
  data | Data to decrypt.
  dataLength | Length of the data to decrypt, in bytes (multiple of the block size).
  result | Receives decrypted output.

Returns
  Operation status.