|
FireSync API
|
Encrypts data.
Note that block cipher modes operates on fixed block sizes. So padding may be added. The type of padding depends on the padding mode set in the constructor. The caller is responsible to remove the padding from decrypted data.
When decrypting data the same cipher mode has to be used when the data was encrypted.
| cipher | Cipher object. |
| data | Data to encrypt. |
| dataLength | Length of the data in bytes. |
| result | Encrypted data. |