Moved details about function and reworded block requirements

This commit is contained in:
Andy Gauge 2017-09-28 08:04:10 -07:00
parent f759f8dd4a
commit 1e3b8183bb
1 changed files with 4 additions and 4 deletions

View File

@ -9,10 +9,6 @@
//! create a new key with [`new_encrypt`] and perform an encryption/decryption
//! using that key with [`aes_ige`].
//!
//! AES is a 128-bit (16 byte) block cipher. The rust implmentation will panic
//! if the input or output does not meet this 16-byte boundry. Attention must
//! be made in this low level implementation to pad the value to the 128-bit boundry.
//!
//! [`new_encrypt`]: struct.AesKey.html#method.new_encrypt
//! [`aes_ige`]: fn.aes_ige.html
//!
@ -120,6 +116,10 @@ impl AesKey {
/// allows a stream of blocks to be encrypted or decrypted without having the entire
/// plaintext available. For more information, visit [AES IGE Encryption].
///
/// This block cipher uses 16 byte blocks. The rust implmentation will panic
/// if the input or output does not meet this 16-byte boundry. Attention must
/// be made in this low level implementation to pad the value to the 128-bit boundry.
///
/// [AES IGE Encryption]: http://www.links.org/files/openssl-ige.pdf
///
/// # Panics