Zen API
|
Encrypts data.
Block ciphers operate on fixed block sizes, so padding may be added. The type of padding depends on settings provided to the cipher object. It is the caller's responsible to remove any padding from decrypted data.
cipher | Cipher object. |
data | Data to encrypt. |
dataLength | Length of the data to encrypt, in bytes. |
result | Receives encrypted data. |