From 9ba903ed09ae15e26260357da9bd61e282126361 Mon Sep 17 00:00:00 2001 From: bing Date: Tue, 2 Jul 2024 15:36:54 +0800 Subject: [PATCH] docs: fix typo in aes decryption example --- src/encryption/symmetric/aes/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encryption/symmetric/aes/mod.rs b/src/encryption/symmetric/aes/mod.rs index 352e8f4..cb907ac 100644 --- a/src/encryption/symmetric/aes/mod.rs +++ b/src/encryption/symmetric/aes/mod.rs @@ -88,7 +88,7 @@ where [(); N / 8]: /// let key = Key::<128>::new(rng.gen()); /// let plaintext = rng.gen(); /// let encrypted = AES::encrypt(&key, &plaintext); - /// let decrypted = AES::decrypt(&key, &plaintext); + /// let decrypted = AES::decrypt(&key, &encrypted); /// ``` fn decrypt(key: &Self::Key, ciphertext: &Self::Block) -> Self::Block { let num_rounds = match N {