aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Gauge <[email protected]>2017-09-28 08:04:10 -0700
committerAndy Gauge <[email protected]>2017-09-28 08:04:10 -0700
commit1e3b8183bbd8e8cdbf517760a78bc1d37383e317 (patch)
treecd93a483d60a348812e2d984cdffb20d8a4af4e8
parentPreface with links to conventional AES (diff)
downloadrust-openssl-1e3b8183bbd8e8cdbf517760a78bc1d37383e317.tar.xz
rust-openssl-1e3b8183bbd8e8cdbf517760a78bc1d37383e317.zip
Moved details about function and reworded block requirements
-rw-r--r--openssl/src/aes.rs8
1 files 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