Document that encrypt/decrypt use padding

This commit is contained in:
Rohit Aggarwal 2018-04-16 14:45:56 +01:00
parent 83d98cf089
commit 973a3fede1
1 changed files with 2 additions and 2 deletions

View File

@ -563,7 +563,7 @@ impl Drop for Crypter {
/// Encrypts data in one go, and returns the encrypted data. /// Encrypts data in one go, and returns the encrypted data.
/// ///
/// Data is encrypted using the specified cipher type `t` in encrypt mode with the specified `key` /// Data is encrypted using the specified cipher type `t` in encrypt mode with the specified `key`
/// and initailization vector `iv`. /// and initailization vector `iv`. Padding is enabled.
/// ///
/// This is a convenient interface to `Crypter` to encrypt all data in one go. To encrypt a stream /// This is a convenient interface to `Crypter` to encrypt all data in one go. To encrypt a stream
/// of data increamentally , use `Crypter` instead. /// of data increamentally , use `Crypter` instead.
@ -602,7 +602,7 @@ pub fn encrypt(
/// Decrypts data in one go, and returns the decrypted data. /// Decrypts data in one go, and returns the decrypted data.
/// ///
/// Data is decrypted using the specified cipher type `t` in decrypt mode with the specified `key` /// Data is decrypted using the specified cipher type `t` in decrypt mode with the specified `key`
/// and initailization vector `iv`. /// and initailization vector `iv`. Padding is enabled.
/// ///
/// This is a convenient interface to `Crypter` to decrypt all data in one go. To decrypt a stream /// This is a convenient interface to `Crypter` to decrypt all data in one go. To decrypt a stream
/// of data increamentally , use `Crypter` instead. /// of data increamentally , use `Crypter` instead.