aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2017-01-01 10:13:34 -0800
committerSteven Fackler <[email protected]>2017-01-01 10:13:34 -0800
commit7e75c76bb4c1bbf7b21181aeb7aab919dcee2576 (patch)
tree1913a08e3d9a227d34b15f98864e62a3f78ee8df /openssl/src
parentFix docs (diff)
downloadrust-openssl-7e75c76bb4c1bbf7b21181aeb7aab919dcee2576.tar.xz
rust-openssl-7e75c76bb4c1bbf7b21181aeb7aab919dcee2576.zip
Stick tag description on the right function
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/symm.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/openssl/src/symm.rs b/openssl/src/symm.rs
index d2cb0cc8..99ee4c67 100644
--- a/openssl/src/symm.rs
+++ b/openssl/src/symm.rs
@@ -369,6 +369,10 @@ fn cipher(t: Cipher,
///
/// Additional Authenticated Data can be provided in the `aad` field, and the authentication tag
/// will be copied into the `tag` field.
+///
+/// The size of the `tag` buffer indicates the required size of the tag. While some ciphers support
+/// a range of tag sizes, it is recommended to pick the maximum size. For AES GCM, this is 16 bytes,
+/// for example.
pub fn encrypt_aead(t: Cipher,
key: &[u8],
iv: Option<&[u8]>,
@@ -390,10 +394,6 @@ pub fn encrypt_aead(t: Cipher,
///
/// Additional Authenticated Data can be provided in the `aad` field, and the authentication tag
/// should be provided in the `tag` field.
-///
-/// The size of the `tag` buffer indicates the required size of the tag. While some ciphers support
-/// a range of tag sizes, it is recommended to pick the maximum size. For AES GCM, this is 16 bytes,
-/// for example.
pub fn decrypt_aead(t: Cipher,
key: &[u8],
iv: Option<&[u8]>,