From 1e3b8183bbd8e8cdbf517760a78bc1d37383e317 Mon Sep 17 00:00:00 2001 From: Andy Gauge Date: Thu, 28 Sep 2017 08:04:10 -0700 Subject: [PATCH] Moved details about function and reworded block requirements --- openssl/src/aes.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openssl/src/aes.rs b/openssl/src/aes.rs index 7c008575..5be99430 100644 --- a/openssl/src/aes.rs +++ b/openssl/src/aes.rs @@ -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