Skip to content

Commit

Permalink
docs: fix typo in aes decryption example
Browse files Browse the repository at this point in the history
  • Loading branch information
eightfilms committed Jul 2, 2024
1 parent ed03f15 commit 9ba903e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encryption/symmetric/aes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9ba903e

Please sign in to comment.