From 6f5ce4b49ac21cb27defd5b35e51b921b7e5ac73 Mon Sep 17 00:00:00 2001 From: Teddy Sudol Date: Fri, 3 Jul 2020 15:39:04 -0700 Subject: [PATCH] Fix documentation for unwrap_key The documentation incorrectly stated the length requirements for the input parameters. --- openssl/src/aes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl/src/aes.rs b/openssl/src/aes.rs index c26a0269..2cda15b0 100644 --- a/openssl/src/aes.rs +++ b/openssl/src/aes.rs @@ -208,7 +208,7 @@ pub fn wrap_key( /// # Panics /// /// Panics if either `out` or `in_` do not have sizes that are a multiple of 8, or -/// if `in` is not 8 bytes longer than `in_` +/// if `in_` is not 8 bytes longer than `out` pub fn unwrap_key( key: &AesKey, iv: Option<[u8; 8]>,